From 56335c20fb2e01a3145223a6c6083719dccd82f6 Mon Sep 17 00:00:00 2001 From: GoFish Date: Sat, 12 Dec 2020 21:16:35 +0000 Subject: [PATCH] Check for presence of .git to see if it is 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 4438e39..7729efa 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\.git")) { rm -r "$env:userprofile\password-store" }