fix(windows): make Remove-Item ignore non-existing rather than fail

This commit is contained in:
AJ ONeal
2023-11-11 09:53:02 -07:00
parent 026d849fa7
commit c26e2165e4
3 changed files with 14 additions and 2 deletions
+1 -1
View File
@@ -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
}
+12
View File
@@ -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
+1 -1
View File
@@ -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
}