Skip to content

Commit 635ed7c

Browse files
authored
Merge pull request #4 from VapiAI/lukatmyshu-patch-2
Update install.ps1
2 parents 428a4bd + af98d95 commit 635ed7c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/install.ps1

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ param()
77
$ErrorActionPreference = "Stop"
88
$ProgressPreference = "SilentlyContinue" # Suppress progress bars for faster downloads
99

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+
1016
# Check if running on Windows
1117
if (-not $IsWindows) {
1218
Write-Host "[ERROR] This installer is for Windows only." -ForegroundColor Red

0 commit comments

Comments
 (0)