From 3f64f8b9c513da3aa4d10e3344426dbb3f817d5e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 26 Apr 2021 07:10:08 +0000 Subject: [PATCH] cleanup: */install.ps1 add out-null to all New-Item calls --- _example/install.ps1 | 2 +- _vim-example/install.ps1 | 2 +- _webi/bootstrap.ps1 | 2 +- _webi/webi-pwsh.ps1 | 8 ++++---- arc/install.ps1 | 2 +- awless/install.ps1 | 4 ++-- caddy/install.ps1 | 4 ++-- chromedriver/install.ps1 | 2 +- comrak/install.ps1 | 2 +- dotenv-linter/install.ps1 | 2 +- dotenv/install.ps1 | 2 +- ffmpeg/install.ps1 | 2 +- git/install.ps1 | 2 +- gitdeploy/install.ps1 | 2 +- golang/install.ps1 | 2 +- goreleaser/install.ps1 | 2 +- k9s/install.ps1 | 2 +- keypairs/install.ps1 | 2 +- kubectx/install.ps1 | 2 +- kubens/install.ps1 | 2 +- lf/install.ps1 | 2 +- lsd/install.ps1 | 2 +- mutagen/install.ps1 | 2 +- nerdfont/install.ps1 | 2 +- pandoc/install.ps1 | 2 +- rclone/install.ps1 | 2 +- rg/install.ps1 | 2 +- sass/install.ps1 | 2 +- sclient/install.ps1 | 2 +- sd/install.ps1 | 2 +- serviceman/install.ps1 | 2 +- shfmt/install.ps1 | 2 +- ssh-utils/ssh-pubkey.ps1 | 2 +- syncthing/install.ps1 | 2 +- vim-ale/install.ps1 | 2 +- vim-devicons/install.ps1 | 2 +- vim-go/install.ps1 | 2 +- vim-lastplace/install.ps1 | 2 +- vim-nerdtree/install.ps1 | 2 +- vim-prettier/install.ps1 | 2 +- vim-sensible/install.ps1 | 2 +- vim-shfmt/install.ps1 | 2 +- vim-syntastic/install.ps1 | 2 +- watchexec/install.ps1 | 2 +- xz/install.ps1 | 2 +- yq/install.ps1 | 2 +- 46 files changed, 51 insertions(+), 51 deletions(-) diff --git a/_example/install.ps1 b/_example/install.ps1 index 8ecff30..c3547e3 100644 --- a/_example/install.ps1 +++ b/_example/install.ps1 @@ -49,7 +49,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\foobar-*\foo.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/_vim-example/install.ps1 b/_vim-example/install.ps1 index 1aaa854..0ac1b2c 100644 --- a/_vim-example/install.ps1 +++ b/_vim-example/install.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/env pwsh IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) { - New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force + New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null } Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\example" -Recurse -ErrorAction Ignore & git clone --depth=1 https://github.com/CHANGEME/example.git "$Env:USERPROFILE\.vim\pack\plugins\start\example" diff --git a/_webi/bootstrap.ps1 b/_webi/bootstrap.ps1 index ace4f3a..b6ebd84 100644 --- a/_webi/bootstrap.ps1 +++ b/_webi/bootstrap.ps1 @@ -1,5 +1,5 @@ # Download the latest webi, then install {{ exename }} -New-Item -Path .local\bin -ItemType Directory -Force +New-Item -Path .local\bin -ItemType Directory -Force | out-null IF ($Env:WEBI_HOST -eq $null -or $Env:WEBI_HOST -eq "") { $Env:WEBI_HOST = "https://webinstall.dev" } curl.exe -s -A "windows" "$Env:WEBI_HOST/packages/_webi/webi-pwsh.ps1" -o "$Env:USERPROFILE\.local\bin\webi-pwsh.ps1" Set-ExecutionPolicy -Scope Process Bypass diff --git a/_webi/webi-pwsh.ps1 b/_webi/webi-pwsh.ps1 index 8fca7f2..f9aa66d 100644 --- a/_webi/webi-pwsh.ps1 +++ b/_webi/webi-pwsh.ps1 @@ -25,9 +25,9 @@ $exename = $args[0] pushd $Env:USERPROFILE # Make paths if needed -New-Item -Path .local\bin -ItemType Directory -Force +New-Item -Path .local\bin -ItemType Directory -Force | out-null # TODO replace all xbin with opt\bin\ -New-Item -Path .local\xbin -ItemType Directory -Force +New-Item -Path .local\xbin -ItemType Directory -Force | out-null # See note on Set-ExecutionPolicy above Set-Content -Path .local\bin\webi.bat -Value "@echo off`r`npushd %USERPROFILE%`r`npowershell -ExecutionPolicy Bypass .local\bin\webi-pwsh.ps1 %1`r`npopd" @@ -35,12 +35,12 @@ Set-Content -Path .local\bin\webi.bat -Value "@echo off`r`npushd %USERPROFILE%`r Remove-Item -Path .local\bin\webi.ps1 -Recurse -ErrorAction Ignore if (!(Test-Path -Path .local\opt)) { - New-Item -Path .local\opt -ItemType Directory -Force + New-Item -Path .local\opt -ItemType Directory -Force | out-null } # TODO windows version of mktemp -d if (!(Test-Path -Path .local\tmp)) { - New-Item -Path .local\tmp -ItemType Directory -Force + New-Item -Path .local\tmp -ItemType Directory -Force | out-null } # TODO SetStrictMode diff --git a/arc/install.ps1 b/arc/install.ps1 index f29c443..4d4343a 100644 --- a/arc/install.ps1 +++ b/arc/install.ps1 @@ -43,7 +43,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path "arc.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/awless/install.ps1 b/awless/install.ps1 index dbd7a09..bee791b 100644 --- a/awless/install.ps1 +++ b/awless/install.ps1 @@ -44,7 +44,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\awless.exe" -Destination "$pkg_src_bin" # Exit tmp @@ -53,5 +53,5 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { echo "Copying into '$pkg_dst_cmd' from '$pkg_src_cmd'" Remove-Item -Path "$pkg_dst_cmd" -Recurse -ErrorAction Ignore | out-null -New-Item "$pkg_dst_bin" -ItemType Directory -Force +New-Item "$pkg_dst_bin" -ItemType Directory -Force | out-null Copy-Item -Path "$pkg_src" -Destination "$pkg_dst" -Recurse diff --git a/caddy/install.ps1 b/caddy/install.ps1 index 76de03a..395849e 100644 --- a/caddy/install.ps1 +++ b/caddy/install.ps1 @@ -44,7 +44,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\caddy.exe" -Destination "$pkg_src_bin" # Exit tmp @@ -53,5 +53,5 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) { echo "Copying into '$pkg_dst_cmd' from '$pkg_src_cmd'" Remove-Item -Path "$pkg_dst_cmd" -Recurse -ErrorAction Ignore | out-null -New-Item "$pkg_dst_bin" -ItemType Directory -Force +New-Item "$pkg_dst_bin" -ItemType Directory -Force | out-null Copy-Item -Path "$pkg_src" -Destination "$pkg_dst" -Recurse diff --git a/chromedriver/install.ps1 b/chromedriver/install.ps1 index 6e6f0e3..fa21f95 100644 --- a/chromedriver/install.ps1 +++ b/chromedriver/install.ps1 @@ -48,7 +48,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\chromedriver-*\chromedriver.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/comrak/install.ps1 b/comrak/install.ps1 index 970bfcc..b809652 100644 --- a/comrak/install.ps1 +++ b/comrak/install.ps1 @@ -28,7 +28,7 @@ IF (!(Test-Path -Path "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERS # Settle unpacked archive into place echo "New Name: $VERNAME" echo "New Location: $Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERSION\bin\$VERNAME" - New-Item "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERSION\bin" -ItemType Directory -Force + New-Item "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERSION\bin" -ItemType Directory -Force | out-null Move-Item -Path "$VERNAME" -Destination "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERSION\bin" # Exit tmp diff --git a/dotenv-linter/install.ps1 b/dotenv-linter/install.ps1 index 3327489..8403a59 100644 --- a/dotenv-linter/install.ps1 +++ b/dotenv-linter/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\dotenv-linter.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/dotenv/install.ps1 b/dotenv/install.ps1 index 6957350..2b19a4f 100644 --- a/dotenv/install.ps1 +++ b/dotenv/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\dotenv.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/ffmpeg/install.ps1 b/ffmpeg/install.ps1 index 57c405f..e94dce0 100644 --- a/ffmpeg/install.ps1 +++ b/ffmpeg/install.ps1 @@ -39,7 +39,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path "$pkg_download" -Destination "$pkg_src_cmd" -Force # Exit tmp diff --git a/git/install.ps1 b/git/install.ps1 index 1867075..3c4a218 100644 --- a/git/install.ps1 +++ b/git/install.ps1 @@ -33,7 +33,7 @@ IF (!(Test-Path -Path "$pkg_src")) # Windows BSD-tar handles zip. Imagine that. echo "Unpacking $pkg_download" IF (!(Test-Path -Path "$pkg_cmd_name-v$Env:WEBI_VERSION")) { - New-Item -Path "$pkg_cmd_name-v$Env:WEBI_VERSION" -ItemType Directory -Force + New-Item -Path "$pkg_cmd_name-v$Env:WEBI_VERSION" -ItemType Directory -Force | out-null } ($none = pushd "$pkg_cmd_name-v$Env:WEBI_VERSION") | out-null & tar xf "$pkg_download" diff --git a/gitdeploy/install.ps1 b/gitdeploy/install.ps1 index 09e7e42..b10d753 100644 --- a/gitdeploy/install.ps1 +++ b/gitdeploy/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\gitdeploy.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/golang/install.ps1 b/golang/install.ps1 index 15b9fa7..bd32608 100644 --- a/golang/install.ps1 +++ b/golang/install.ps1 @@ -54,7 +54,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..." diff --git a/goreleaser/install.ps1 b/goreleaser/install.ps1 index e47706f..111b826 100644 --- a/goreleaser/install.ps1 +++ b/goreleaser/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\goreleaser.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/k9s/install.ps1 b/k9s/install.ps1 index 9a313a5..5bb6746 100644 --- a/k9s/install.ps1 +++ b/k9s/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path "k9s.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/keypairs/install.ps1 b/keypairs/install.ps1 index 1ea1097..4943043 100644 --- a/keypairs/install.ps1 +++ b/keypairs/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\keypairs.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/kubectx/install.ps1 b/kubectx/install.ps1 index b30c92d..3453472 100644 --- a/kubectx/install.ps1 +++ b/kubectx/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path "kubectx.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/kubens/install.ps1 b/kubens/install.ps1 index b7a4095..848d7fb 100644 --- a/kubens/install.ps1 +++ b/kubens/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path "kubens.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/lf/install.ps1 b/lf/install.ps1 index c3cc37b..f6a5776 100644 --- a/lf/install.ps1 +++ b/lf/install.ps1 @@ -35,7 +35,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) & tar xf "$pkg_download" echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\lf.exe" -Destination "$pkg_src_bin" popd diff --git a/lsd/install.ps1 b/lsd/install.ps1 index bc74e44..4867b54 100644 --- a/lsd/install.ps1 +++ b/lsd/install.ps1 @@ -46,7 +46,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\lsd-*\lsd.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/mutagen/install.ps1 b/mutagen/install.ps1 index dc1747c..67a798e 100644 --- a/mutagen/install.ps1 +++ b/mutagen/install.ps1 @@ -35,7 +35,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) & tar xf "$pkg_download" echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_dir" -ItemType Directory -Force + New-Item "$pkg_src_dir" -ItemType Directory -Force | out-null Move-Item -Path ".\*" -Destination "$pkg_src_dir" popd diff --git a/nerdfont/install.ps1 b/nerdfont/install.ps1 index 668c758..9157d1f 100644 --- a/nerdfont/install.ps1 +++ b/nerdfont/install.ps1 @@ -3,7 +3,7 @@ $my_nerdfont_otf = "Droid Sans Mono for Powerline Nerd Font Complete Windows Compatible.otf" $my_fontdir = "$Env:UserProfile\AppData\Local\Microsoft\Windows\Fonts" -New-Item -Path "$my_fontdir" -ItemType Directory -Force +New-Item -Path "$my_fontdir" -ItemType Directory -Force | out-null IF (!(Test-Path -Path "$my_fontdir\$my_nerdfont_otf")) { diff --git a/pandoc/install.ps1 b/pandoc/install.ps1 index 709e910..4a83d0f 100644 --- a/pandoc/install.ps1 +++ b/pandoc/install.ps1 @@ -46,7 +46,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\pandoc-*\pandoc.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/rclone/install.ps1 b/rclone/install.ps1 index b5ffa14..741dca7 100644 --- a/rclone/install.ps1 +++ b/rclone/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\rclone.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/rg/install.ps1 b/rg/install.ps1 index f6da869..190f8b9 100644 --- a/rg/install.ps1 +++ b/rg/install.ps1 @@ -46,7 +46,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\ripgrep-*\rg.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/sass/install.ps1 b/sass/install.ps1 index bd9fd35..5fc47ef 100644 --- a/sass/install.ps1 +++ b/sass/install.ps1 @@ -40,7 +40,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) & tar xf "$pkg_download" echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force > $null + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null > $null Move-Item -Path ".\dart-sass\*" -Destination "$pkg_src_dir" # Exit tmp diff --git a/sclient/install.ps1 b/sclient/install.ps1 index 1b0b216..cd889db 100644 --- a/sclient/install.ps1 +++ b/sclient/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\sclient.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/sd/install.ps1 b/sd/install.ps1 index ca86b8a..4ef0608 100644 --- a/sd/install.ps1 +++ b/sd/install.ps1 @@ -46,7 +46,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path "b\*\release\sd.exe" -Destination "$pkg_src_bin" # Exit tmp popd diff --git a/serviceman/install.ps1 b/serviceman/install.ps1 index 2eec924..8efa0ab 100644 --- a/serviceman/install.ps1 +++ b/serviceman/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\serviceman.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/shfmt/install.ps1 b/shfmt/install.ps1 index 29d2627..7b4c44a 100644 --- a/shfmt/install.ps1 +++ b/shfmt/install.ps1 @@ -35,7 +35,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) & tar xf "$pkg_download" echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\shfmt-*\shfmt.exe" -Destination "$pkg_src_bin" popd diff --git a/ssh-utils/ssh-pubkey.ps1 b/ssh-utils/ssh-pubkey.ps1 index e323496..e86a858 100644 --- a/ssh-utils/ssh-pubkey.ps1 +++ b/ssh-utils/ssh-pubkey.ps1 @@ -5,7 +5,7 @@ if (!(Test-Path -Path "$Env:USERPROFILE/.ssh")) { - New-Item -Path "$Env:USERPROFILE/.ssh" -ItemType Directory -Force + New-Item -Path "$Env:USERPROFILE/.ssh" -ItemType Directory -Force | out-null #& icacls "$Env:USERPROFILE/.ssh" /inheritance:r #& icacls "$Env:USERPROFILE/.ssh" /grant:r "$Env:USERNAME":"(F)" } diff --git a/syncthing/install.ps1 b/syncthing/install.ps1 index db8224a..0847234 100644 --- a/syncthing/install.ps1 +++ b/syncthing/install.ps1 @@ -45,7 +45,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\syncthing*\syncthing.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/vim-ale/install.ps1 b/vim-ale/install.ps1 index 5132639..46b4758 100644 --- a/vim-ale/install.ps1 +++ b/vim-ale/install.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/env pwsh IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) { - New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force + New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null } Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\ale" -Recurse -ErrorAction Ignore & git clone --depth=1 https://github.com/dense-analysis/ale.git "$Env:USERPROFILE\.vim\pack\plugins\start\ale" diff --git a/vim-devicons/install.ps1 b/vim-devicons/install.ps1 index 6a8f082..e96c2db 100644 --- a/vim-devicons/install.ps1 +++ b/vim-devicons/install.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/env pwsh IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) { - New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force + New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null } Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\devicons" -Recurse -ErrorAction Ignore & git clone --depth=1 https://github.com/ryanoasis/vim-devicons.git "$Env:USERPROFILE\.vim\pack\plugins\start\devicons.vim" diff --git a/vim-go/install.ps1 b/vim-go/install.ps1 index ff2f7d4..617ae33 100644 --- a/vim-go/install.ps1 +++ b/vim-go/install.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/env pwsh -New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force +New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\vim-go" -Recurse -ErrorAction Ignore & git clone --depth=1 https://github.com/fatih/vim-go.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-go" diff --git a/vim-lastplace/install.ps1 b/vim-lastplace/install.ps1 index 749d400..5a41edb 100644 --- a/vim-lastplace/install.ps1 +++ b/vim-lastplace/install.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/env pwsh -New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force +New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\vim-lastplace" -Recurse -ErrorAction Ignore & git clone --depth=1 https://github.com/farmergreg/vim-lastplace.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-lastplace" diff --git a/vim-nerdtree/install.ps1 b/vim-nerdtree/install.ps1 index 2f0ab09..7d099a8 100644 --- a/vim-nerdtree/install.ps1 +++ b/vim-nerdtree/install.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/env pwsh IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) { - New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force + New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null } Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\nerdtree" -Recurse -ErrorAction Ignore & git clone --depth=1 https://github.com/preservim/nerdtree.git "$Env:USERPROFILE\.vim\pack\plugins\start\nerdtree.vim" diff --git a/vim-prettier/install.ps1 b/vim-prettier/install.ps1 index 5488301..a45750e 100644 --- a/vim-prettier/install.ps1 +++ b/vim-prettier/install.ps1 @@ -1,6 +1,6 @@ #!/usr/bin/env pwsh -New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force +New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\vim-prettier" -Recurse -ErrorAction Ignore & git clone --depth=1 https://github.com/prettier/vim-prettier.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-prettier" diff --git a/vim-sensible/install.ps1 b/vim-sensible/install.ps1 index bcf03f5..4e46051 100644 --- a/vim-sensible/install.ps1 +++ b/vim-sensible/install.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/env pwsh IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) { - New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force + New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null } Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\vim-sensible" -Recurse -ErrorAction Ignore & git clone --depth=1 https://tpope.io/vim/sensible.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-sensible" diff --git a/vim-shfmt/install.ps1 b/vim-shfmt/install.ps1 index d889922..2c811d0 100644 --- a/vim-shfmt/install.ps1 +++ b/vim-shfmt/install.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/env pwsh IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) { - New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force + New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null } Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\shfmt" -Recurse -ErrorAction Ignore & git clone --depth=1 https://github.com/z0mbix/vim-shfmt.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-shfmt" diff --git a/vim-syntastic/install.ps1 b/vim-syntastic/install.ps1 index 7e7127c..9520685 100644 --- a/vim-syntastic/install.ps1 +++ b/vim-syntastic/install.ps1 @@ -1,7 +1,7 @@ #!/usr/bin/env pwsh IF (!(Test-Path -Path "$Env:USERPROFILE\.vim\pack\plugins\start")) { - New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force + New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force | out-null } Remove-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start\vim-syntastic" -Recurse -ErrorAction Ignore & git clone --depth=1 https://github.com/vim-syntastic/syntastic.git "$Env:USERPROFILE\.vim\pack\plugins\start\vim-syntastic" diff --git a/watchexec/install.ps1 b/watchexec/install.ps1 index bdc6765..375e786 100644 --- a/watchexec/install.ps1 +++ b/watchexec/install.ps1 @@ -43,7 +43,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\watchexec-*\watchexec.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/xz/install.ps1 b/xz/install.ps1 index df9e55f..38430e4 100644 --- a/xz/install.ps1 +++ b/xz/install.ps1 @@ -39,7 +39,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) # Settle unpacked archive into place echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\bin_x86-64\xz.exe" -Destination "$pkg_src_bin" Move-Item -Path ".\bin_x86-64\xzdec.exe" -Destination "$pkg_src_bin" Copy-Item -Path "$pkg_src_bin\xzdec.exe" -Destination "$pkg_src_bin\unxz.exe" diff --git a/yq/install.ps1 b/yq/install.ps1 index a9e9b0d..5aa5d93 100644 --- a/yq/install.ps1 +++ b/yq/install.ps1 @@ -31,7 +31,7 @@ IF (!(Test-Path -Path "$pkg_src_cmd")) & tar xf "$pkg_download" echo "Install Location: $pkg_src_cmd" - New-Item "$pkg_src_bin" -ItemType Directory -Force + New-Item "$pkg_src_bin" -ItemType Directory -Force | out-null Move-Item -Path ".\yq.exe" -Destination "$pkg_src_bin" popd -- 2.25.1