Skip to content

Commit 742ae08

Browse files
mat-oclmkdrnet
andauthored
Fix Install-VSCode.ps1 localization issue (#3392)
Changed literal English check of OS-architecture to a regex that should work on most languages. Co-authored-by: Matti <[email protected]>
1 parent 7ed03e3 commit 742ae08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/Install-VSCode.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ gpgkey=https://packages.microsoft.com/keys/microsoft.asc
170170

171171
function Test-IsOsArchX64 {
172172
if ($PSVersionTable.PSVersion.Major -lt 6) {
173-
return (Get-CimInstance -ClassName Win32_OperatingSystem).OSArchitecture -eq '64-bit'
173+
return (Get-CimInstance -ClassName Win32_OperatingSystem).OSArchitecture -match '64'
174174
}
175175

176176
return [System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq [System.Runtime.InteropServices.Architecture]::X64

0 commit comments

Comments
 (0)