moved the $bw logout above the remove-variable so it works now. Created new signature

This commit is contained in:
2021-11-25 12:01:43 -05:00
parent 9e64f093ac
commit 5c3b342c88
2 changed files with 2 additions and 3 deletions

View File

@@ -145,8 +145,7 @@ if ($zip -or $encrypt) {
& $sdelete -p 25 "$PSScriptRoot\$zipFilename"
}
}
# remove all the variables
Remove-Variable -Name * -ErrorAction SilentlyContinue
# logout of bitwaren to ensure the session is destroyed
& $bw logout
exit 0
# remove all the variables
Remove-Variable -Name * -ErrorAction SilentlyContinue

Binary file not shown.