mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-06 13:05:24 +08:00
tests: debug linux tests
This commit is contained in:
parent
12ac6da81b
commit
7cd6ea6922
1 changed files with 2 additions and 0 deletions
|
@ -77,8 +77,10 @@ def download_restic_binaries(arch: str = "amd64"):
|
|||
# Assume we have a zip or tar.gz
|
||||
shutil.unpack_archive(full_path, dest_dir)
|
||||
try:
|
||||
print("ARCHIVE DIR EXISTS: ", dest_dir.joinpath("ARCHIVES").is_dir())
|
||||
if not dest_dir.joinpath("ARCHIVES").is_dir():
|
||||
os.makedirs(dest_dir.joinpath("ARCHIVES"))
|
||||
print("ARCHIVE DIR EXISTS: ", dest_dir.joinpath("ARCHIVES").is_dir())
|
||||
shutil.move(full_path, dest_dir.joinpath("ARCHIVES").joinpath(filename))
|
||||
except OSError:
|
||||
print(
|
||||
|
|
Loading…
Add table
Reference in a new issue