feature: add test (install almost every package)
[webi-installers/.git] / golang / install.ps1
index 15b9fa73fcbd1234642de11ebdf4de7f98bfccea..779472f81b3fd5ff1e477bd1f3e2eae091469d44 100644 (file)
@@ -1,7 +1,8 @@
 #!/usr/bin/env pwsh
 
 $pkg_cmd_name = "go"
-$pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE"
+New-Item "$Env:USERPROFILE\Downloads\webi" -ItemType Directory -Force | out-null
+$pkg_download = "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE"
 
 $pkg_src = "$Env:USERPROFILE\.local\opt\$pkg_cmd_name-v$Env:WEBI_VERSION"
 
@@ -54,7 +55,7 @@ IF (!(Test-Path -Path "$pkg_src"))
 echo "Copying into '$pkg_dst' from '$pkg_src'"
 Remove-Item -Path "$pkg_dst" -Recurse -ErrorAction Ignore
 Copy-Item -Path "$pkg_src" -Destination "$pkg_dst" -Recurse
-IF (!(Test-Path -Path go\bin)) { New-Item -Path go\bin -ItemType Directory -Force }
+IF (!(Test-Path -Path go\bin)) { New-Item -Path go\bin -ItemType Directory -Force | out-null }
 
 # Special to go: re-run all go tooling builds
 echo "Building go language tools..."