We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8d6f56 commit af98d95Copy full SHA for af98d95
scripts/install.ps1
@@ -7,6 +7,12 @@ param()
7
$ErrorActionPreference = "Stop"
8
$ProgressPreference = "SilentlyContinue" # Suppress progress bars for faster downloads
9
10
+# Ensure compatibility with PowerShell 5.1
11
+if (-not (Test-Path Variable:IsWindows)) {
12
+ # We're on PowerShell 5.1 or earlier (which only runs on Windows)
13
+ $IsWindows = $true
14
+}
15
+
16
# Check if running on Windows
17
if (-not $IsWindows) {
18
Write-Host "[ERROR] This installer is for Windows only." -ForegroundColor Red
0 commit comments