From 68f035d13b1bda07cead477dd0ac31dab78f174b Mon Sep 17 00:00:00 2001 From: GoFish Date: Sat, 12 Dec 2020 21:08:01 +0000 Subject: [PATCH] Fix delete empty QtPass default password-store --- windows_to_go.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" }