mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
fix(xcaddy): check for 'go' with 'Get-Command' in PowerShell rather than exact path
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user