From 70920467e8242491260e093d0d07ecbc9190c767 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Fri, 26 Nov 2021 12:35:12 -0500 Subject: [PATCH] removed file hash check it seems that during a git clone, all the file hashes are changed. removed the check until future notice. Also removing signature file as that is having the same issue as the main script file hash changes and fails to verify --- bitwardenBackup.ps1 | 4 ++-- bitwardenBackup.ps1.asc | 8 -------- 2 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 bitwardenBackup.ps1.asc diff --git a/bitwardenBackup.ps1 b/bitwardenBackup.ps1 index 2bb0c83..8bf1245 100644 --- a/bitwardenBackup.ps1 +++ b/bitwardenBackup.ps1 @@ -8,7 +8,7 @@ param ( if ($verbose) { $VerbosePreference = "continue" } - +<# # Commands to generate base64 encoded file hashes, don't run in ISE as copying it out includes the line breaks # get file hashes # $hashes = $(Get-ChildItem -Recurse "$PSScriptRoot\lib\" | Get-FileHash -Algorithm SHA256) @@ -39,7 +39,7 @@ if ($($compareObjects | measure).count -gt 0) { Write-Error "File hashes do not match." exit 1 } - +#> # get the date/time for the back filename $dateTime = Get-Date -format ("yyyyMMdd-HHmmss") # set the binaries path, do not rely on the path variables as they are not hashed diff --git a/bitwardenBackup.ps1.asc b/bitwardenBackup.ps1.asc deleted file mode 100644 index df36b21..0000000 --- a/bitwardenBackup.ps1.asc +++ /dev/null @@ -1,8 +0,0 @@ ------BEGIN PGP SIGNATURE----- - -iLcEABMKAB0WIQRNBw1gUe//KQUJi2MW40ofFzkKagUCYaEUawAKCRAW40ofFzkK -ai3MAgjdtcgYiBNJqUL5KH5SE7VjG9EZ7DN3M9UrHI4QRlqSN1GnpbQ1tyktoih9 -Vd6Iahmr4ZLI3eCpWKu/bEvHEZegigIHf2RsinBeEHKmcz0qcIWRxmT+j6Os2EQE -LPFV5wIMVqMHTaS3K/h9uAf3ETe5fyg7jEJV/p6Jl+Y6q+uJHdunLYA= -=/504 ------END PGP SIGNATURE-----