mirror of
https://github.com/webinstall/webi-installers.git
synced 2026-08-23 22:16:48 +00:00
fix(windows): make Remove-Item ignore non-existing rather than fail
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user