From 1cb3255f4037625e7b27c513197026474753c3b5 Mon Sep 17 00:00:00 2001 From: John Gaunt Date: Fri, 30 Dec 2022 14:42:07 -0500 Subject: [PATCH] fixed shred command --- bitwardenBackup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bitwardenBackup.py b/bitwardenBackup.py index 472d486..e9d4a43 100644 --- a/bitwardenBackup.py +++ b/bitwardenBackup.py @@ -445,7 +445,7 @@ if __name__ == "__main__": logger.debug((bitwarden_login_output.stdout).decode()) bitwarden_status = json.loads(((subprocess.run([bitwarden_cli_executable, 'status'], capture_output=True)).stdout).decode()) logger.debug("Bitwarden Status: {}".format(bitwarden_status)) - if bitwarden_status['status'] == "locked": + if bitwarden_status['status'] == "locked": logger.info("Successfully Logged in") bitwarden_unlock_output = subprocess.run([bitwarden_cli_executable, 'unlock', vault_password, '--raw', '--nointeraction'], capture_output=True) bitwarden_session_key = (bitwarden_unlock_output.stdout).decode() @@ -543,7 +543,7 @@ if __name__ == "__main__": logger.debug((subprocess.run([sdelete_executable, '-p', '5', zip_filename + ".zip"], capture_output=True).stdout).decode()) elif os_detected == "Linux": # find -depth -type f -exec shred -v -n 1 -z -u {} \; - logger.debug((subprocess.run(['find', working_directory, '-depth', '-type', 'f', '-exec', 'shred', '-v', '-n', '5', '-u', '/{/}', '\/', ';'], capture_output=True).stdout).decode()) + logger.debug((subprocess.run(['find', working_directory, '-depth', '-type', 'f', '-exec', 'shred', '-v', '-n', '5', '-u', '/{/}', '\;'], capture_output=True).stdout).decode()) if not opts.no_encrypt: logger.debug((subprocess.run(['shred', '-v', '-u', '-n', '5', zip_filename + '.zip'], capture_output=True).stdout).decode())