From 7e1a11d1912cf2c6032196c6fe3470564ab06c0d Mon Sep 17 00:00:00 2001 From: deajan Date: Tue, 10 Dec 2024 23:41:05 +0100 Subject: [PATCH] tests: Fix doublequoted variable --- RESTIC_SOURCE_FILES/update_restic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RESTIC_SOURCE_FILES/update_restic.py b/RESTIC_SOURCE_FILES/update_restic.py index 14d4221..53f7ca4 100644 --- a/RESTIC_SOURCE_FILES/update_restic.py +++ b/RESTIC_SOURCE_FILES/update_restic.py @@ -92,7 +92,7 @@ def download_restic_binaries(arch: str = "amd64") -> bool: full_path = dest_dir.joinpath(filename) print("PATH TO DOWNLOADED ARCHIVE: ", full_path) if arch_suffix == ".bz2": - with open(str(full_path).rstrip("arch_suffix"), "wb") as fp: + with open(str(full_path).rstrip(arch_suffix), "wb") as fp: fp.write(bz2.decompress(file_request.content)) # We also need to make that file executable os.chmod(str(full_path).rstrip(arch_suffix), 0o775)