From: AJ ONeal Date: Sun, 14 Nov 2021 10:01:57 +0000 (+0000) Subject: bugfix(Windows): make sure ~/Downloads exists X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=b944f3cb2597fac8225446ba9fbc110790c59c74;p=webi-installers%2F.git bugfix(Windows): make sure ~/Downloads exists --- diff --git a/_example/install.ps1 b/_example/install.ps1 index c3547e3..cb64519 100644 --- a/_example/install.ps1 +++ b/_example/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\foobar-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\foobar-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/arc/install.ps1 b/arc/install.ps1 index 4d4343a..d1ca23c 100644 --- a/arc/install.ps1 +++ b/arc/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\archiver-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\archiver-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/awless/install.ps1 b/awless/install.ps1 index bee791b..1863f93 100644 --- a/awless/install.ps1 +++ b/awless/install.ps1 @@ -16,6 +16,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\awless-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\awless-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/caddy/install.ps1 b/caddy/install.ps1 index 395849e..5d46ccc 100644 --- a/caddy/install.ps1 +++ b/caddy/install.ps1 @@ -16,6 +16,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\caddy-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\caddy-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/chromedriver/install.ps1 b/chromedriver/install.ps1 index fa21f95..6c71d5b 100644 --- a/chromedriver/install.ps1 +++ b/chromedriver/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\chromedriver-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\chromedriver-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/dotenv-linter/install.ps1 b/dotenv-linter/install.ps1 index 8403a59..dd28f76 100644 --- a/dotenv-linter/install.ps1 +++ b/dotenv-linter/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\dotenv-linter-v$Env:WEBI_VERSION\bin $pkg_src_dir = "$Env:USERPROFILE\.local\opt\dotenv-linter-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/dotenv/install.ps1 b/dotenv/install.ps1 index 2b19a4f..e199219 100644 --- a/dotenv/install.ps1 +++ b/dotenv/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\dotenv-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\dotenv-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/ffmpeg/install.ps1 b/ffmpeg/install.ps1 index e94dce0..10086db 100644 --- a/ffmpeg/install.ps1 +++ b/ffmpeg/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\ffmpeg-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\ffmpeg-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/gh/install.ps1 b/gh/install.ps1 index 9b70e84..ea2f0ab 100644 --- a/gh/install.ps1 +++ b/gh/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\gh-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\gh-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/git/install.ps1 b/git/install.ps1 index 3c4a218..5b3858f 100644 --- a/git/install.ps1 +++ b/git/install.ps1 @@ -1,6 +1,7 @@ #!/usr/bin/env pwsh $pkg_cmd_name = "git" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" $pkg_src = "$Env:USERPROFILE\.local\opt\$pkg_cmd_name-v$Env:WEBI_VERSION" diff --git a/gitdeploy/install.ps1 b/gitdeploy/install.ps1 index b10d753..2d9286a 100644 --- a/gitdeploy/install.ps1 +++ b/gitdeploy/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\gitdeploy-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\gitdeploy-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/gitea/install.ps1 b/gitea/install.ps1 index 11ca5db..7b1be30 100644 --- a/gitea/install.ps1 +++ b/gitea/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\gitea-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\gitea-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/golang/install.ps1 b/golang/install.ps1 index bd32608..2dbd740 100644 --- a/golang/install.ps1 +++ b/golang/install.ps1 @@ -1,6 +1,7 @@ #!/usr/bin/env pwsh $pkg_cmd_name = "go" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" $pkg_src = "$Env:USERPROFILE\.local\opt\$pkg_cmd_name-v$Env:WEBI_VERSION" diff --git a/goreleaser/install.ps1 b/goreleaser/install.ps1 index 111b826..990418f 100644 --- a/goreleaser/install.ps1 +++ b/goreleaser/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\goreleaser-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\goreleaser-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/gprox/install.ps1 b/gprox/install.ps1 index b24e770..b095726 100644 --- a/gprox/install.ps1 +++ b/gprox/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\gprox-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\gprox-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/hugo/install.ps1 b/hugo/install.ps1 index f93d23d..2744d7f 100644 --- a/hugo/install.ps1 +++ b/hugo/install.ps1 @@ -16,6 +16,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\hugo-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\hugo-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/k9s/install.ps1 b/k9s/install.ps1 index 5bb6746..2c87997 100644 --- a/k9s/install.ps1 +++ b/k9s/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\k9s-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\k9s-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/keypairs/install.ps1 b/keypairs/install.ps1 index 4943043..bd86db3 100644 --- a/keypairs/install.ps1 +++ b/keypairs/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\keypairs-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\keypairs-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/kind/install.ps1 b/kind/install.ps1 index f55ac27..eed2d2d 100644 --- a/kind/install.ps1 +++ b/kind/install.ps1 @@ -14,6 +14,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\kind-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\kind-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE")) diff --git a/kubectx/install.ps1 b/kubectx/install.ps1 index 3453472..9fbcbdf 100644 --- a/kubectx/install.ps1 +++ b/kubectx/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\kubectx-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\kubectx-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/kubens/install.ps1 b/kubens/install.ps1 index 848d7fb..4009b0e 100644 --- a/kubens/install.ps1 +++ b/kubens/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\kubens-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\kubens-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/lf/install.ps1 b/lf/install.ps1 index f6a5776..040a1fa 100644 --- a/lf/install.ps1 +++ b/lf/install.ps1 @@ -14,6 +14,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\lf-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\lf-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE")) diff --git a/lsd/install.ps1 b/lsd/install.ps1 index 4867b54..177f47f 100644 --- a/lsd/install.ps1 +++ b/lsd/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\lsd-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\lsd-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/mutagen/install.ps1 b/mutagen/install.ps1 index 67a798e..25e9ba9 100644 --- a/mutagen/install.ps1 +++ b/mutagen/install.ps1 @@ -14,6 +14,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\mutagen-v$Env:WEBI_VERSION" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\mutagen-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE")) diff --git a/pandoc/install.ps1 b/pandoc/install.ps1 index 4a83d0f..fdbd92e 100644 --- a/pandoc/install.ps1 +++ b/pandoc/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\pandoc-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\pandoc-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/rclone/install.ps1 b/rclone/install.ps1 index 741dca7..6756403 100644 --- a/rclone/install.ps1 +++ b/rclone/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\rclone-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\rclone-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/rg/install.ps1 b/rg/install.ps1 index 190f8b9..d0642e2 100644 --- a/rg/install.ps1 +++ b/rg/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\ripgrep-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\ripgrep-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/sass/install.ps1 b/sass/install.ps1 index 5fc47ef..e7bd322 100644 --- a/sass/install.ps1 +++ b/sass/install.ps1 @@ -17,6 +17,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\dart-sass-v$Env:WEBI_VERSION" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\dart-sass-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_dir" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE")) diff --git a/sclient/install.ps1 b/sclient/install.ps1 index cd889db..9eba462 100644 --- a/sclient/install.ps1 +++ b/sclient/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\sclient-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\sclient-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/sd/install.ps1 b/sd/install.ps1 index 4ef0608..751f766 100644 --- a/sd/install.ps1 +++ b/sd/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\sd-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\sd-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/serviceman/install.ps1 b/serviceman/install.ps1 index 8efa0ab..599b615 100644 --- a/serviceman/install.ps1 +++ b/serviceman/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\serviceman-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\serviceman-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/shellcheck/install.ps1 b/shellcheck/install.ps1 index 4f5eac5..610d2d5 100644 --- a/shellcheck/install.ps1 +++ b/shellcheck/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\shellcheck-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\shellcheck-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/shfmt/install.ps1 b/shfmt/install.ps1 index 7b4c44a..427b881 100644 --- a/shfmt/install.ps1 +++ b/shfmt/install.ps1 @@ -14,6 +14,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\shfmt-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\shfmt-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE")) diff --git a/syncthing/install.ps1 b/syncthing/install.ps1 index 0847234..f1d8286 100644 --- a/syncthing/install.ps1 +++ b/syncthing/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\syncthing-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\syncthing-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/watchexec/install.ps1 b/watchexec/install.ps1 index 375e786..5df25ad 100644 --- a/watchexec/install.ps1 +++ b/watchexec/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\watchexec-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\watchexec-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/xz/install.ps1 b/xz/install.ps1 index 38430e4..8129114 100644 --- a/xz/install.ps1 +++ b/xz/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\xz-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\xz-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive diff --git a/yq/install.ps1 b/yq/install.ps1 index 5aa5d93..98c69f2 100644 --- a/yq/install.ps1 +++ b/yq/install.ps1 @@ -10,6 +10,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\yq-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\yq-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" IF (!(Test-Path -Path "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE")) diff --git a/zoxide/install.ps1 b/zoxide/install.ps1 index 01f93eb..ac76bff 100644 --- a/zoxide/install.ps1 +++ b/zoxide/install.ps1 @@ -15,6 +15,7 @@ $pkg_src_bin = "$Env:USERPROFILE\.local\opt\zoxide-v$Env:WEBI_VERSION\bin" $pkg_src_dir = "$Env:USERPROFILE\.local\opt\zoxide-v$Env:WEBI_VERSION" $pkg_src = "$pkg_src_cmd" +New-Item "$Env:USERPROFILE\Downloads" -ItemType Directory -Force | out-null $pkg_download = "$Env:USERPROFILE\Downloads\$Env:WEBI_PKG_FILE" # Fetch archive