Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Aug 2, 2024
1 parent 3e5ba94 commit 0f0ea77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ def zip_dir(ssh_client, father_dir, zip_dir, stdio=None):
Compress files through zip
:return:
"""
cmd = "cd {father_dir} && zip {zip_dir}.zip -rm {zip_dir}".format(father_dir=father_dir, zip_dir=zip_dir)
cmd = "zip {father_dir}/{zip_dir}.zip -rm {father_dir}/{zip_dir}".format(father_dir=father_dir, zip_dir=zip_dir)
ssh_client.exec_cmd(cmd)


Expand All @@ -198,7 +198,7 @@ def zip_encrypt_dir(ssh_client, zip_password, father_dir, zip_dir, stdio=None):
Compress files by encryption
:return:
"""
cmd = "cd {father_dir} && zip --password {zip_password} {zip_dir}.zip -rm {zip_dir}".format(zip_password=zip_password, father_dir=father_dir, zip_dir=zip_dir)
cmd = "zip --password {zip_password} {father_dir}/{zip_dir}.zip -rm {father_dir}/{zip_dir}".format(zip_password=zip_password, father_dir=father_dir, zip_dir=zip_dir)
ssh_client.exec_cmd(cmd)


Expand Down

0 comments on commit 0f0ea77

Please sign in to comment.