From af98d95dd4ebe0a548d995e8716e740e4c6140e4 Mon Sep 17 00:00:00 2001 From: Vijay Raghunathan Date: Tue, 8 Jul 2025 14:03:45 -0700 Subject: [PATCH] Update install.ps1 --- scripts/install.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/install.ps1 b/scripts/install.ps1 index fc7cdca..260ee4e 100644 --- a/scripts/install.ps1 +++ b/scripts/install.ps1 @@ -7,6 +7,12 @@ param() $ErrorActionPreference = "Stop" $ProgressPreference = "SilentlyContinue" # Suppress progress bars for faster downloads +# Ensure compatibility with PowerShell 5.1 +if (-not (Test-Path Variable:IsWindows)) { + # We're on PowerShell 5.1 or earlier (which only runs on Windows) + $IsWindows = $true +} + # Check if running on Windows if (-not $IsWindows) { Write-Host "[ERROR] This installer is for Windows only." -ForegroundColor Red