diff --git a/xcaddy/install.ps1 b/xcaddy/install.ps1 index f0ffc5f..aed34b6 100644 --- a/xcaddy/install.ps1 +++ b/xcaddy/install.ps1 @@ -21,7 +21,7 @@ $pkg_download = "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" # Fetch Go compiler Write-Output "Checking for Go compiler..." -IF (-not (Test-Path "$Env:USERPROFILE\.local\opt\go")) { +IF (-Not (Get-Command -Name "go" -ErrorAction Silent)) { & "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" go }