fix(windows): always use $HOME-relative paths

This commit is contained in:
AJ ONeal
2023-11-11 21:04:19 -07:00
parent 676bcaf125
commit b65e5a337e
68 changed files with 70 additions and 70 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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"

View File

@@ -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

View File

@@ -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

View File

@@ -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