diff --git a/windows_to_go.ps1 b/windows_to_go.ps1 index 3f8f711..b2a9012 100644 --- a/windows_to_go.ps1 +++ b/windows_to_go.ps1 @@ -40,7 +40,7 @@ if (-not (Test-Path -Path "$env:userprofile\.ssh" -PathType Container)) { } # Delete empty QtPass default password-store -if (Test-Path -Path "$env:userprofile\password-store\*") { +if (Test-Path -Path "$env:userprofile\password-store" -PathType Container -And -not (Test-Path -Path "$env:userprofile\password-store\*")) { rm -r "$env:userprofile\password-store" }