diff options
author | kylo252 <[email protected]> | 2022-04-06 16:24:39 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-04-06 16:24:39 +0200 |
commit | 2d0ba75d036f5c465bd38eb97fc5195d59e6e504 (patch) | |
tree | dbbd3495f7894285a0388fdface0fbedf7973c7a /utils/installer/uninstall.ps1 | |
parent | 23feb96bcc8182f19528298817617336b866eadb (diff) | |
parent | fcb16c0961cd2b6ca522a0b2088ad663fd605b85 (diff) |
Merge remote-tracking branch 'origin/rolling'
Diffstat (limited to 'utils/installer/uninstall.ps1')
-rw-r--r-- | utils/installer/uninstall.ps1 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/utils/installer/uninstall.ps1 b/utils/installer/uninstall.ps1 index 4d6ffa5d..2de21037 100644 --- a/utils/installer/uninstall.ps1 +++ b/utils/installer/uninstall.ps1 @@ -49,9 +49,15 @@ function remove_lvim_dirs($force) { if (Test-Path $dir) {
Remove-Item -Force -Recurse $dir
}
- if ($force -eq $true -and (Test-Path "$dir.bak" -or Test-Path "$dir.old")) {
- Remove-Item -Force -Recurse "$dir.{bak,old}"
+ if ($force -eq $true) {
+ if (Test-Path "$dir.bak") {
+ Remove-Item -Force -Recurse "$dir.bak"
+ }
+ if (Test-Path "$dir.old") {
+ Remove-Item -Force -Recurse "$dir.old"
+ }
}
}
}
+main($args)
\ No newline at end of file |