diff options
| author | ruki <[email protected]> | 2020-12-25 23:54:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-25 23:54:47 +0800 |
| commit | d9fb6826a45caafc94772ba63c87a3d2f023867e (patch) | |
| tree | ec37efbb6579c50c4b27b85e35d695bf65d22796 /scripts | |
| parent | 89376b4e876467909a809d622fea762885cc6040 (diff) | |
fix get.ps1
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/get.ps1 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1 index c1a760be2..4ec3df140 100755 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -153,7 +153,7 @@ param ( $content = [System.Text.RegularExpressions.Regex]::Replace($content, "\n*(# PowerShell parameter completion shim for xmake)?\s*Register-ArgumentCompleter -Native -CommandName xmake -ScriptBlock\s*{.+?\n}\s*", "`n", [System.Text.RegularExpressions.RegexOptions]::Singleline) } try { - $appendcontent = (Invoke-Webrequest 'https://cdn.jsdelivr.net/gh/xmake-io/xmake@master/scripts/register-completions.ps1' -UseBasicParsing).Content + $appendcontent = (Invoke-Webrequest 'https://raw.githubusercontent.com/xmake-io/xmake/master/scripts/register-completions.ps1' -UseBasicParsing).Content } catch { writeErrorTip 'Download failed!' writeErrorTip 'Check your network or... the news of S3 break' |
