From c26e2165e42837b6e22ed6352db019b8f48ce4b1 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Sat, 11 Nov 2023 01:30:49 +0000 Subject: [PATCH] fix(windows): make Remove-Item ignore non-existing rather than fail --- vim-commentary/install.ps1 | 2 +- vim-things.sh | 12 ++++++++++++ vim-zig/install.ps1 | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 vim-things.sh diff --git a/vim-commentary/install.ps1 b/vim-commentary/install.ps1 index 9becf7c..4bcec12 100644 --- a/vim-commentary/install.ps1 +++ b/vim-commentary/install.ps1 @@ -58,7 +58,7 @@ function fn_git_shallow_clone { } function fn_remove_existing { - Remove-Item -Recurse -Force ` + Remove-Item -Recurse -Force -ErrorAction Ignore ` -Path "$pkg_dst" | Out-Null } diff --git a/vim-things.sh b/vim-things.sh new file mode 100644 index 0000000..4dca230 --- /dev/null +++ b/vim-things.sh @@ -0,0 +1,12 @@ +vim README.md +vim _webi/template.ps1 +vim _webi/template.sh +vim brew/install.sh +vim git/install.ps1 +vim golang/install.ps1 +vim golang/install.sh +vim node/install.ps1 +vim postgres/install.sh +vim sass/install.ps1 +vim webi/install.sh +vim zig/install.ps1 diff --git a/vim-zig/install.ps1 b/vim-zig/install.ps1 index 60b7556..70e6db7 100644 --- a/vim-zig/install.ps1 +++ b/vim-zig/install.ps1 @@ -58,7 +58,7 @@ function fn_git_shallow_clone { } function fn_remove_existing { - Remove-Item -Recurse -Force ` + Remove-Item -Recurse -Force -ErrorAction Ignore ` -Path "$pkg_dst" | Out-Null }