summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorOpportunity <[email protected]>2023-02-21 16:02:59 +0800
committerGitHub <[email protected]>2023-02-21 16:02:59 +0800
commit808982f5ba1ab55d69f5d084382c0a094ff399dd (patch)
treed96d354550392e21ce5fcdd37160d1379fd0d1cc /scripts
parente9ffa9a0ebef6c5db90b3c9a83cc3c3add449290 (diff)
Update get.ps1
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/get.ps13
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'