mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-10 13:40:15 +08:00
tests: Fix doublequoted variable
This commit is contained in:
parent
cb89b3de36
commit
7e1a11d191
1 changed files with 1 additions and 1 deletions
|
@ -92,7 +92,7 @@ def download_restic_binaries(arch: str = "amd64") -> bool:
|
||||||
full_path = dest_dir.joinpath(filename)
|
full_path = dest_dir.joinpath(filename)
|
||||||
print("PATH TO DOWNLOADED ARCHIVE: ", full_path)
|
print("PATH TO DOWNLOADED ARCHIVE: ", full_path)
|
||||||
if arch_suffix == ".bz2":
|
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))
|
fp.write(bz2.decompress(file_request.content))
|
||||||
# We also need to make that file executable
|
# We also need to make that file executable
|
||||||
os.chmod(str(full_path).rstrip(arch_suffix), 0o775)
|
os.chmod(str(full_path).rstrip(arch_suffix), 0o775)
|
||||||
|
|
Loading…
Add table
Reference in a new issue