diff --git a/_example/install.ps1 b/_example/install.ps1 index 92c6e88..36cfe1d 100644 --- a/_example/install.ps1 +++ b/_example/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\foobar-v*" -Recurse -ErrorAction Ignore diff --git a/arc/install.ps1 b/arc/install.ps1 index 789a9f4..86c7524 100644 --- a/arc/install.ps1 +++ b/arc/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\arc-*" -Recurse -ErrorAction Ignore diff --git a/atomicparsley/install.ps1 b/atomicparsley/install.ps1 index 64d9e48..fa6d6db 100644 --- a/atomicparsley/install.ps1 +++ b/atomicparsley/install.ps1 @@ -34,7 +34,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\AtomicParsley-v*" -Recurse -ErrorAction Ignore diff --git a/awless/install.ps1 b/awless/install.ps1 index 938d81e..9682468 100644 --- a/awless/install.ps1 +++ b/awless/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\awless-v*" -Recurse -ErrorAction Ignore diff --git a/bat/install.ps1 b/bat/install.ps1 index 3fb1be5..d6f777e 100644 --- a/bat/install.ps1 +++ b/bat/install.ps1 @@ -20,7 +20,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\bin\$VERNAME")) { # TODO: temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path "$Env:PKG_NAME-v*" -Recurse -ErrorAction Ignore diff --git a/caddy/install.ps1 b/caddy/install.ps1 index e8716d6..c4bc920 100644 --- a/caddy/install.ps1 +++ b/caddy/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\caddy-v*" -Recurse -ErrorAction Ignore diff --git a/chromedriver/install.ps1 b/chromedriver/install.ps1 index e5af3ea..479ce5c 100644 --- a/chromedriver/install.ps1 +++ b/chromedriver/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\chromedriver.exe" -Recurse -ErrorAction Ignore diff --git a/cmake/install.ps1 b/cmake/install.ps1 index a8259e9..10c0200 100644 --- a/cmake/install.ps1 +++ b/cmake/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_dir")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\cmake*" -Recurse -ErrorAction Ignore diff --git a/comrak/install.ps1 b/comrak/install.ps1 index ef88875..6089161 100644 --- a/comrak/install.ps1 +++ b/comrak/install.ps1 @@ -14,7 +14,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERS # TODO: temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path "$Env:PKG_NAME-v*" -Recurse -ErrorAction Ignore diff --git a/crabz/install.ps1 b/crabz/install.ps1 index 6b5cf7c..8ab8b13 100644 --- a/crabz/install.ps1 +++ b/crabz/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Settle unpacked archive into place Write-Output "Install Location: $pkg_src_cmd" diff --git a/curlie/install.ps1 b/curlie/install.ps1 index 6e828af..8865d3d 100644 --- a/curlie/install.ps1 +++ b/curlie/install.ps1 @@ -14,7 +14,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\bin\$VERNAME")) { # TODO: temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path "$Env:PKG_NAME-v*" -Recurse -ErrorAction Ignore diff --git a/dashcore/install.ps1 b/dashcore/install.ps1 index 9bd7dd7..8a1156a 100644 --- a/dashcore/install.ps1 +++ b/dashcore/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_dir")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\dashcore*" -Recurse -ErrorAction Ignore diff --git a/dashd/install.ps1 b/dashd/install.ps1 index 153302d..c91efa9 100644 --- a/dashd/install.ps1 +++ b/dashd/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_dir")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\dashcore*" -Recurse -ErrorAction Ignore diff --git a/dashmsg/install.ps1 b/dashmsg/install.ps1 index c885569..2ae8207 100644 --- a/dashmsg/install.ps1 +++ b/dashmsg/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\dashmsg-v*" -Recurse -ErrorAction Ignore diff --git a/delta/install.ps1 b/delta/install.ps1 index 5dd5bcf..121be56 100644 --- a/delta/install.ps1 +++ b/delta/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\delta-v*" -Recurse -ErrorAction Ignore diff --git a/deno/install.ps1 b/deno/install.ps1 index 0e27248..d08fe22 100644 --- a/deno/install.ps1 +++ b/deno/install.ps1 @@ -13,7 +13,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERS # TODO: temp directory # Enter opt - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path "deno-v*" -Recurse -ErrorAction Ignore diff --git a/dotenv-linter/install.ps1 b/dotenv-linter/install.ps1 index 2cab5f6..6de035d 100644 --- a/dotenv-linter/install.ps1 +++ b/dotenv-linter/install.ps1 @@ -36,7 +36,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\dotenv-linter-v*" -Recurse -ErrorAction Ignore diff --git a/dotenv/install.ps1 b/dotenv/install.ps1 index edd1a1c..38bb68c 100644 --- a/dotenv/install.ps1 +++ b/dotenv/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\dotenv-v*" -Recurse -ErrorAction Ignore diff --git a/fd/install.ps1 b/fd/install.ps1 index 6e828af..8865d3d 100644 --- a/fd/install.ps1 +++ b/fd/install.ps1 @@ -14,7 +14,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\bin\$VERNAME")) { # TODO: temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path "$Env:PKG_NAME-v*" -Recurse -ErrorAction Ignore diff --git a/ffmpeg/install.ps1 b/ffmpeg/install.ps1 index 26d4d9e..614ee70 100644 --- a/ffmpeg/install.ps1 +++ b/ffmpeg/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\win32-*" -Recurse -ErrorAction Ignore diff --git a/ffuf/install.ps1 b/ffuf/install.ps1 index c731eac..663100a 100644 --- a/ffuf/install.ps1 +++ b/ffuf/install.ps1 @@ -31,7 +31,7 @@ IF (-Not (Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\ffuf-v*" -Recurse -ErrorAction Ignore diff --git a/fzf/install.ps1 b/fzf/install.ps1 index 6e828af..8865d3d 100644 --- a/fzf/install.ps1 +++ b/fzf/install.ps1 @@ -14,7 +14,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\bin\$VERNAME")) { # TODO: temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path "$Env:PKG_NAME-v*" -Recurse -ErrorAction Ignore diff --git a/gh/install.ps1 b/gh/install.ps1 index 4ed7348..4b4ea5c 100644 --- a/gh/install.ps1 +++ b/gh/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\gh-v*" -Recurse -ErrorAction Ignore diff --git a/git/install.ps1 b/git/install.ps1 index 66da923..19c9373 100644 --- a/git/install.ps1 +++ b/git/install.ps1 @@ -22,7 +22,7 @@ IF (!(Test-Path -Path "$pkg_src")) { # TODO: temp directory # Enter opt - ($none = Push-Location .local\tmp) | Out-Null + ($none = Push-Location $HOME\.local\tmp) | Out-Null # Remove any leftover tmp cruft Remove-Item -Path "$pkg_cmd_name*" -Recurse -ErrorAction Ignore diff --git a/gitdeploy/install.ps1 b/gitdeploy/install.ps1 index 51d7148..15fde6d 100644 --- a/gitdeploy/install.ps1 +++ b/gitdeploy/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\gitdeploy-v*" -Recurse -ErrorAction Ignore diff --git a/gitea/install.ps1 b/gitea/install.ps1 index 3dbde8c..e4ce4ba 100644 --- a/gitea/install.ps1 +++ b/gitea/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\gitea-*" -Recurse -ErrorAction Ignore diff --git a/go/install.ps1 b/go/install.ps1 index e271608..6cc3f2a 100644 --- a/go/install.ps1 +++ b/go/install.ps1 @@ -27,7 +27,7 @@ IF (!(Test-Path -Path "$pkg_src")) { # TODO: temp directory # Enter opt - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path "$pkg_cmd_name*" -Recurse -ErrorAction Ignore diff --git a/golang/install.ps1 b/golang/install.ps1 index e271608..6cc3f2a 100644 --- a/golang/install.ps1 +++ b/golang/install.ps1 @@ -27,7 +27,7 @@ IF (!(Test-Path -Path "$pkg_src")) { # TODO: temp directory # Enter opt - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path "$pkg_cmd_name*" -Recurse -ErrorAction Ignore diff --git a/goreleaser/install.ps1 b/goreleaser/install.ps1 index c2b0b0a..40a7f5e 100644 --- a/goreleaser/install.ps1 +++ b/goreleaser/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\goreleaser-v*" -Recurse -ErrorAction Ignore diff --git a/gprox/install.ps1 b/gprox/install.ps1 index 7b56506..09ae724 100644 --- a/gprox/install.ps1 +++ b/gprox/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\gprox-v*" -Recurse -ErrorAction Ignore diff --git a/grype/install.ps1 b/grype/install.ps1 index 26e19c7..4236207 100644 --- a/grype/install.ps1 +++ b/grype/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\grype-v*" -Recurse -ErrorAction Ignore diff --git a/hugo-extended/install.ps1 b/hugo-extended/install.ps1 index c2a91d6..2612950 100644 --- a/hugo-extended/install.ps1 +++ b/hugo-extended/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\hugo-extended-v*" -Recurse -ErrorAction Ignore diff --git a/hugo/install.ps1 b/hugo/install.ps1 index 07a66aa..a8d2e6b 100644 --- a/hugo/install.ps1 +++ b/hugo/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\hugo-v*" -Recurse -ErrorAction Ignore diff --git a/jq/install.ps1 b/jq/install.ps1 index bcd8e19..bbd56a2 100644 --- a/jq/install.ps1 +++ b/jq/install.ps1 @@ -14,7 +14,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\bin\$VERNAME")) { # TODO: temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path "$Env:PKG_NAME-v*" -Recurse -ErrorAction Ignore diff --git a/k9s/install.ps1 b/k9s/install.ps1 index d9e14df..1dbc549 100644 --- a/k9s/install.ps1 +++ b/k9s/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\k9s-v*" -Recurse -ErrorAction Ignore diff --git a/keypairs/install.ps1 b/keypairs/install.ps1 index 09f5526..7d6d615 100644 --- a/keypairs/install.ps1 +++ b/keypairs/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\keypairs-v*" -Recurse -ErrorAction Ignore diff --git a/kind/install.ps1 b/kind/install.ps1 index 44fec6e..4625f8e 100644 --- a/kind/install.ps1 +++ b/kind/install.ps1 @@ -25,7 +25,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { IF (!(Test-Path -Path "$pkg_src_cmd")) { Write-Output "Installing kind" - Push-Location .local\tmp + Push-Location $HOME\.local\tmp Remove-Item -Path ".\kind-v*" -Recurse -ErrorAction Ignore Remove-Item -Path ".\kind.exe" -Recurse -ErrorAction Ignore diff --git a/kubectx/install.ps1 b/kubectx/install.ps1 index 7730f50..691a269 100644 --- a/kubectx/install.ps1 +++ b/kubectx/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\kubectx-v*" -Recurse -ErrorAction Ignore diff --git a/kubens/install.ps1 b/kubens/install.ps1 index 2db01a6..7bf7ec4 100644 --- a/kubens/install.ps1 +++ b/kubens/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\kubens-v*" -Recurse -ErrorAction Ignore diff --git a/lf/install.ps1 b/lf/install.ps1 index 3876750..e06647f 100644 --- a/lf/install.ps1 +++ b/lf/install.ps1 @@ -26,7 +26,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { IF (!(Test-Path -Path "$pkg_src_cmd")) { Write-Output "Installing lf" - Push-Location .local\tmp + Push-Location $HOME\.local\tmp Remove-Item -Path ".\lf.exe" -Recurse -ErrorAction Ignore diff --git a/lsd/install.ps1 b/lsd/install.ps1 index a09cf96..93e380b 100644 --- a/lsd/install.ps1 +++ b/lsd/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\lsd-v*" -Recurse -ErrorAction Ignore diff --git a/mutagen/install.ps1 b/mutagen/install.ps1 index f344f9e..837edb1 100644 --- a/mutagen/install.ps1 +++ b/mutagen/install.ps1 @@ -26,7 +26,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { IF (!(Test-Path -Path "$pkg_src_cmd")) { Write-Output "Installing mutagen" - Push-Location .local\tmp + Push-Location $HOME\.local\tmp Remove-Item -Path ".\mutagen.exe" -Recurse -ErrorAction Ignore diff --git a/node/install.ps1 b/node/install.ps1 index 8031d9b..045e172 100644 --- a/node/install.ps1 +++ b/node/install.ps1 @@ -14,7 +14,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERS # TODO: temp directory # Enter opt - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path "node-v*" -Recurse -ErrorAction Ignore diff --git a/ots/install.ps1 b/ots/install.ps1 index 39f3d08..5492813 100644 --- a/ots/install.ps1 +++ b/ots/install.ps1 @@ -27,7 +27,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { IF (!(Test-Path -Path "$pkg_src_cmd")) { Write-Output "Installing ots" - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\ots-v*" -Recurse -ErrorAction Ignore diff --git a/pandoc/install.ps1 b/pandoc/install.ps1 index e199b33..8064467 100644 --- a/pandoc/install.ps1 +++ b/pandoc/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\pandoc-v*" -Recurse -ErrorAction Ignore diff --git a/pathman/install.ps1 b/pathman/install.ps1 index 7a7a5ad..bfb4794 100644 --- a/pathman/install.ps1 +++ b/pathman/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\pathman-v*" -Recurse -ErrorAction Ignore diff --git a/rclone/install.ps1 b/rclone/install.ps1 index f243ed4..833b7fe 100644 --- a/rclone/install.ps1 +++ b/rclone/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\rclone-v*" -Recurse -ErrorAction Ignore diff --git a/rg/install.ps1 b/rg/install.ps1 index 5a465c9..ee38bee 100644 --- a/rg/install.ps1 +++ b/rg/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\ripgrep-v*" -Recurse -ErrorAction Ignore diff --git a/sass/install.ps1 b/sass/install.ps1 index 9e1b411..ebe5396 100644 --- a/sass/install.ps1 +++ b/sass/install.ps1 @@ -29,7 +29,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { IF (!(Test-Path -Path "$pkg_src_cmd")) { Write-Output "Installing sass (dart-sass)" - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\dart-sass-v*" -Recurse -ErrorAction Ignore diff --git a/sclient/install.ps1 b/sclient/install.ps1 index 5f5b8b8..617b14d 100644 --- a/sclient/install.ps1 +++ b/sclient/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\sclient-*" -Recurse -ErrorAction Ignore diff --git a/sd/install.ps1 b/sd/install.ps1 index 526c539..5f4d0e6 100644 --- a/sd/install.ps1 +++ b/sd/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\sd-*" -Recurse -ErrorAction Ignore diff --git a/serviceman/install.ps1 b/serviceman/install.ps1 index 714146d..6b842ff 100644 --- a/serviceman/install.ps1 +++ b/serviceman/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\serviceman-v*" -Recurse -ErrorAction Ignore diff --git a/shellcheck/install.ps1 b/shellcheck/install.ps1 index f8d7e65..0844254 100644 --- a/shellcheck/install.ps1 +++ b/shellcheck/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\shellcheck-v*" -Recurse -ErrorAction Ignore | Out-Null diff --git a/shfmt/install.ps1 b/shfmt/install.ps1 index 4f7f1cc..147472f 100644 --- a/shfmt/install.ps1 +++ b/shfmt/install.ps1 @@ -28,7 +28,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Move single binary into root of temporary folder & Move-Item "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE" "shfmt.exe" diff --git a/sqlpkg/install.ps1 b/sqlpkg/install.ps1 index 23ba483..8e2acc1 100644 --- a/sqlpkg/install.ps1 +++ b/sqlpkg/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\sqlpkg-v*" -Recurse -ErrorAction Ignore diff --git a/sttr/install.ps1 b/sttr/install.ps1 index 80aab6c..34814ce 100644 --- a/sttr/install.ps1 +++ b/sttr/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\sttr-v*" -Recurse -ErrorAction Ignore diff --git a/syncthing/install.ps1 b/syncthing/install.ps1 index b70adaf..c1282ff 100644 --- a/syncthing/install.ps1 +++ b/syncthing/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\syncthing-*" -Recurse -ErrorAction Ignore diff --git a/terraform/install.ps1 b/terraform/install.ps1 index ee1edf9..48fef7e 100644 --- a/terraform/install.ps1 +++ b/terraform/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\terraform-v*" -Recurse -ErrorAction Ignore diff --git a/tinygo/install.ps1 b/tinygo/install.ps1 index 1cb8d2d..f923c00 100644 --- a/tinygo/install.ps1 +++ b/tinygo/install.ps1 @@ -38,7 +38,7 @@ IF (!(Test-Path -Path "$pkg_src")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\tinygo*" -Recurse -ErrorAction Ignore diff --git a/trip/install.ps1 b/trip/install.ps1 index aca9d7e..f8ca7b2 100644 --- a/trip/install.ps1 +++ b/trip/install.ps1 @@ -43,7 +43,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\trippy-v*" -Recurse -ErrorAction Ignore diff --git a/watchexec/install.ps1 b/watchexec/install.ps1 index 5c82ac2..64f26a8 100644 --- a/watchexec/install.ps1 +++ b/watchexec/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\watchexec-v*" -Recurse -ErrorAction Ignore diff --git a/webi/webi-pwsh.ps1 b/webi/webi-pwsh.ps1 index 0b56f3b..a74d69d 100755 --- a/webi/webi-pwsh.ps1 +++ b/webi/webi-pwsh.ps1 @@ -137,8 +137,8 @@ if (!(Test-Path -Path "$HOME\.local\opt")) { New-Item -Path "$HOME\.local\opt" -ItemType Directory -Force | Out-Null } # TODO windows version of mktemp -d -if (!(Test-Path -Path "$HOME\.local\tmp")) { - New-Item -Path "$HOME\.local\tmp" -ItemType Directory -Force | Out-Null +if (!(Test-Path -Path "$HOME\$HOME\.local\tmp")) { + New-Item -Path "$HOME\$HOME\.local\tmp" -ItemType Directory -Force | Out-Null } ## show help if no params given or help flags are used @@ -193,7 +193,7 @@ Write-Host " ${TDim}Fetching install script ...${TReset}" $PKG_URL = "$Env:WEBI_HOST/api/installers/$exename.ps1" # TODO detect formats $UrlParams = "formats=zip,exe,tar,git&libc=msvc" -$PkgInstallPwsh = "$HOME\.local\tmp\$exename.install.ps1" +$PkgInstallPwsh = "$HOME\$HOME\.local\tmp\$exename.install.ps1" Invoke-DownloadUrl -Force -URL $PKG_URL -Params $UrlParams -Path $PkgInstallPwsh powershell $HOME\.local\tmp\${exename}.install.ps1 diff --git a/xcaddy/install.ps1 b/xcaddy/install.ps1 index 22a3775..ea9e6a5 100644 --- a/xcaddy/install.ps1 +++ b/xcaddy/install.ps1 @@ -38,7 +38,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\xcaddy-v*" -Recurse -ErrorAction Ignore diff --git a/xsv/install.ps1 b/xsv/install.ps1 index 347d0d6..f579b18 100644 --- a/xsv/install.ps1 +++ b/xsv/install.ps1 @@ -34,7 +34,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\xsv-v*" -Recurse -ErrorAction Ignore diff --git a/xz/install.ps1 b/xz/install.ps1 index d732abb..8d0ed5d 100644 --- a/xz/install.ps1 +++ b/xz/install.ps1 @@ -30,7 +30,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp Write-Output "Unpacking $pkg_download" & tar xf "$pkg_download" diff --git a/yq/install.ps1 b/yq/install.ps1 index d8bf305..acbceb1 100644 --- a/yq/install.ps1 +++ b/yq/install.ps1 @@ -21,7 +21,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\webi\$Env:WEBI_PKG_FILE")) { IF (!(Test-Path -Path "$pkg_src_cmd")) { Write-Output "Installing yq" - Push-Location .local\tmp + Push-Location $HOME\.local\tmp Remove-Item -Path ".\yq-v*" -Recurse -ErrorAction Ignore Remove-Item -Path ".\yq.exe" -Recurse -ErrorAction Ignore diff --git a/zig/install.ps1 b/zig/install.ps1 index cd69716..97c74a4 100644 --- a/zig/install.ps1 +++ b/zig/install.ps1 @@ -32,7 +32,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # TODO: create package-specific temp directory # Enter tmp - Push-Location .local\tmp + Push-Location $HOME\.local\tmp # Remove any leftover tmp cruft Remove-Item -Path ".\zig-*" -Recurse -ErrorAction Ignore diff --git a/zoxide/install.ps1 b/zoxide/install.ps1 index 3335952..d282859 100644 --- a/zoxide/install.ps1 +++ b/zoxide/install.ps1 @@ -29,7 +29,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { Write-Output "Installing zoxide" # Enter tmp - Push-Location ".local\tmp" + Push-Location "$HOME\.local\tmp" # Remove any leftover tmp cruft Remove-Item -Path ".\zoxide*" -Recurse -ErrorAction Ignore