diff options
| author | Opportunity <[email protected]> | 2023-02-21 16:04:45 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-02-21 16:04:45 +0800 |
| commit | 12747a1ea9e85ba231111753090992eb7d95fa53 (patch) | |
| tree | 8b0aea86ad4a35459a4aea44bd985581a046f7ab /scripts | |
| parent | 808982f5ba1ab55d69f5d084382c0a094ff399dd (diff) | |
Update 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 c0ecb9ac5..d117bfc45 100755 --- a/scripts/get.ps1 +++ b/scripts/get.ps1 @@ -157,7 +157,7 @@ param ( "https://fastly.jsdelivr.net/gh/xmake-io/xmake@$v/scripts/register-completions.ps1" } $appendcontent = (Invoke-Webrequest $url -UseBasicParsing).Content - if ($appendcontent -is [bytep[]]) { + if ($appendcontent -is [byte[]]) { $appendcontent = [System.Text.Encoding]::UTF8.GetString($appendcontent) } } catch { |
