From ee34ace0ded7395ba1d84a64364673a1f3f6a048 Mon Sep 17 00:00:00 2001 From: Pratyush Saxema Date: Mon, 7 Sep 2020 12:01:15 +0530 Subject: [PATCH] changes made changes made as per request all set --- comrak/install.ps1 | 2 +- git/install.ps1 | 2 +- golang/install.ps1 | 2 +- lsd/install.ps1 | 2 +- nerdfont/install.ps1 | 2 +- rg/install.ps1 | 2 +- ssh-utils/ssh-pubkey.ps1 | 2 +- vim-go/install.ps1 | 2 +- vim-sensible/install.ps1 | 2 +- vim-syntastic/install.ps1 | 2 +- 10 files changed, 10 insertions(+), 10 deletions(-) diff --git a/comrak/install.ps1 b/comrak/install.ps1 index 9bd322e..d1ec56e 100644 --- a/comrak/install.ps1 +++ b/comrak/install.ps1 @@ -29,7 +29,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 + New-Item "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERSION\bin" -ItemType Directory -Force Move-Item -Path "$VERNAME" -Destination "$Env:USERPROFILE\.local\opt\$Env:PKG_NAME-v$Env:WEBI_VERSION\bin" # Exit tmp diff --git a/git/install.ps1 b/git/install.ps1 index d47b209..1867075 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 + New-Item -Path "$pkg_cmd_name-v$Env:WEBI_VERSION" -ItemType Directory -Force } ($none = pushd "$pkg_cmd_name-v$Env:WEBI_VERSION") | out-null & tar xf "$pkg_download" diff --git a/golang/install.ps1 b/golang/install.ps1 index 0ae4a62..44a0db8 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 } +IF (!(Test-Path -Path go\bin)) { New-Item -Path go\bin -ItemType Directory -Force } # Special to go: re-run all go tooling builds echo "Building go language tools..." diff --git a/lsd/install.ps1 b/lsd/install.ps1 index 3722062..bac24ff 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 + New-Item "$pkg_src_bin" -ItemType Directory -Force Move-Item -Path ".\lsd-*\lsd.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/nerdfont/install.ps1 b/nerdfont/install.ps1 index 882de45..35ecc2c 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 -ErrorAction Ignore +New-Item -Path "$my_fontdir" -ItemType Directory -Force IF (!(Test-Path -Path "$my_fontdir\$my_nerdfont_otf")) { diff --git a/rg/install.ps1 b/rg/install.ps1 index 2c161a0..61ca3d5 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 + New-Item "$pkg_src_bin" -ItemType Directory -Force Move-Item -Path ".\ripgrep-*\rg.exe" -Destination "$pkg_src_bin" # Exit tmp diff --git a/ssh-utils/ssh-pubkey.ps1 b/ssh-utils/ssh-pubkey.ps1 index 0951caa..e323496 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 + New-Item -Path "$Env:USERPROFILE/.ssh" -ItemType Directory -Force #& icacls "$Env:USERPROFILE/.ssh" /inheritance:r #& icacls "$Env:USERPROFILE/.ssh" /grant:r "$Env:USERNAME":"(F)" } diff --git a/vim-go/install.ps1 b/vim-go/install.ps1 index c77e39a..3a5ee52 100644 --- a/vim-go/install.ps1 +++ b/vim-go/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 + New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force } 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-sensible/install.ps1 b/vim-sensible/install.ps1 index b82a671..bcf03f5 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 + New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force } 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-syntastic/install.ps1 b/vim-syntastic/install.ps1 index 41cee14..7e7127c 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 + New-Item -Path "$Env:USERPROFILE\.vim\pack\plugins\start" -ItemType Directory -Force } 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" -- 2.25.1