From e6e497d8744f3845d4cbfef9c6fcfe411e84e5d8 Mon Sep 17 00:00:00 2001 From: GoFish Date: Sat, 12 Dec 2020 19:45:08 +0000 Subject: [PATCH] Delete empty default password-store --- windows_to_go.ps1 | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/windows_to_go.ps1 b/windows_to_go.ps1 index 44cabd0..0f8d619 100644 --- a/windows_to_go.ps1 +++ b/windows_to_go.ps1 @@ -38,6 +38,11 @@ if (-not (Test-Path -Path "$env:userprofile\.ssh" -PathType Container)) { curl -UseBasicParsing https://git.axel.tripier.fr/GoFish/boxstarter-win10/raw/branch/master/windows_to_go_ssh_pass_ed25519.asc | gpg -d > "$env:userprofile\.ssh\windows_to_go_ssh_pass_ed25519" } +# Delete empty QtPass default password-store +if (Test-Path -Path "$env:userprofile\password-store\*") { + rm -r "$env:userprofile\password-store" +} + # Clone pass repo for QtPass set GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $env:userprofile\.ssh\windows_to_go_ssh_pass_ed25519" if (Test-Path -Path "$env:userprofile\password-store" -PathType Container) {