mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-19 03:56:16 +00:00
fix(xcaddy): use updated PATH after installing Go
This commit is contained in:
@@ -23,6 +23,12 @@ $pkg_download = "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE"
|
||||
Write-Output "Checking for Go compiler..."
|
||||
IF (-Not (Get-Command -Name "go" -ErrorAction Silent)) {
|
||||
& "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" go
|
||||
$Env:Path = "$HOME\.local\opt\go\bin;$Env:Path"
|
||||
$Env:Path = "$HOME\go\bin;$Env:Path"
|
||||
[System.Environment]::SetEnvironmentVariable(
|
||||
"Path",
|
||||
$env:Path,
|
||||
[System.EnvironmentVariableTarget]::User)
|
||||
}
|
||||
|
||||
# Fetch archive
|
||||
|
||||
Reference in New Issue
Block a user