From 84e499aa38f661be5ea54a6bf7b0cbbf987ec9ff Mon Sep 17 00:00:00 2001 From: Bruno Gava Guerra Date: Sat, 2 Apr 2022 07:07:48 -0300 Subject: fix(installer/pwsh): fixes some details on installer and uninstaller (#2404) --- utils/installer/uninstall.ps1 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'utils/installer/uninstall.ps1') 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 -- cgit v1.2.3