You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/Install-VSCode.ps1
+5
Original file line number
Diff line number
Diff line change
@@ -458,6 +458,11 @@ if (($IsLinux -or $IsMacOS) -and (id -u) -ne 0) {
458
458
throw"Must be running as root to install VSCode.`nInvoke this script with (for example):`n`tsudo pwsh -f Install-VSCode.ps1 -BuildEdition Stable-System"
459
459
}
460
460
461
+
# User builds can only be installed on Windows systems
462
+
if ($BuildEdition.EndsWith('User') -and$os-ne'Windows') {
463
+
throw'User builds are not available for non-Windows systems'
0 commit comments