mute output of zip to prevent deadlock with pipe

This commit is contained in:
joshuaboud 2021-06-04 15:18:59 -03:00
parent d5a7500f67
commit cd024a08c5
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E
1 changed files with 2 additions and 1 deletions

View File

@ -51,7 +51,7 @@ def make_zip(path):
"message": e
}))
sys.exit(1)
cmd = ["zip", "-r", "--symlinks", path, *files]
cmd = ["zip", "-ryq", path, *files]
try:
child = subprocess.Popen(
cmd,
@ -95,6 +95,7 @@ def main():
sys.exit(1)
archive_path = tmp_dir + "/navigator-download_" + datetime.now().strftime("%Y-%m-%d_%H-%M-%S.%f") + ".zip"
make_zip(archive_path)
sys.exit(0)
if __name__ == "__main__":