diff options
| author | ruki <[email protected]> | 2020-12-02 22:51:44 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-12-02 22:51:44 +0800 |
| commit | 6a8e66725e2b9de63bc1d17a195cea4b634d04b2 (patch) | |
| tree | eb72ad30c2fece616a2271f111f4e0e5ebe606aa /scripts | |
| parent | 383614211d1fef1b571620c72a4bdcc23f466107 (diff) | |
use mirror url for 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 4ec3df140..c1a760be2 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://raw.githubusercontent.com/xmake-io/xmake/master/scripts/register-completions.ps1' -UseBasicParsing).Content + $appendcontent = (Invoke-Webrequest 'https://cdn.jsdelivr.net/gh/xmake-io/xmake@master/scripts/register-completions.ps1' -UseBasicParsing).Content } catch { writeErrorTip 'Download failed!' writeErrorTip 'Check your network or... the news of S3 break' |
