minor changes and comments

This commit is contained in:
2021-11-25 12:48:57 -05:00
parent 5c3b342c88
commit 307eaa2a38

View File

@@ -6,7 +6,6 @@ param (
# Verbose output # Verbose output
if ($verbose) { if ($verbose) {
$oldverbose = $VerbosePreference
$VerbosePreference = "continue" $VerbosePreference = "continue"
} }
@@ -42,7 +41,8 @@ if ($($compareObjects | measure).count -gt 0) {
} }
# get the date/time for the back filename # get the date/time for the back filename
$dateTime = get-date -format ("yyyyMMdd-HHmmss") $dateTime = Get-Date -format ("yyyyMMdd-HHmmss")
# set the binaries path, do not rely on the path variables as they are not hashed
$bw = "$PSScriptRoot\lib\bw.exe" $bw = "$PSScriptRoot\lib\bw.exe"
$gpg = "$PSScriptRoot\lib\gpg\bin\gpg.exe" $gpg = "$PSScriptRoot\lib\gpg\bin\gpg.exe"
$sdelete = "$PSScriptRoot\lib\sdelete.exe" $sdelete = "$PSScriptRoot\lib\sdelete.exe"