From 26a4765a338cb14de359042744b9df005391e436 Mon Sep 17 00:00:00 2001 From: GoFish Date: Sat, 12 Dec 2020 21:11:42 +0000 Subject: [PATCH] More fix to test 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 b2a9012..4438e39 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" -PathType Container -And -not (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" }