diff options
Diffstat (limited to 'scripts/get.ps1')
| -rwxr-xr-x | scripts/get.ps1 | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/get.ps1 b/scripts/get.ps1 index 8d94e2d51..c0ecb9ac5 100755 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -157,6 +157,9 @@ param ( "https://fastly.jsdelivr.net/gh/xmake-io/xmake@$v/scripts/register-completions.ps1" } $appendcontent = (Invoke-Webrequest $url -UseBasicParsing).Content + if ($appendcontent -is [bytep[]]) { + $appendcontent = [System.Text.Encoding]::UTF8.GetString($appendcontent) + } } catch { writeErrorTip 'Download failed!' writeErrorTip 'Check your network or... the news of S3 break' |
