Skip to content

Commit

Permalink
Prevent error in rclone detect
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Feb 2, 2024
1 parent 0caef3f commit 357edcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cm-mlops/script/download-file/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def preprocess(i):
elif tool == "rclone":
if env.get('CM_RCLONE_CONFIG_CMD', '') != '':
env['CM_DOWNLOAD_CONFIG_CMD'] = env['CM_RCLONE_CONFIG_CMD']
env['CM_DOWNLOAD_CMD'] = f"rclone copy {url} ./{env['CM_DOWNLOAD_FILENAME']} -P"
env['CM_DOWNLOAD_CMD'] = f"rclone copy {url} {os.path.join(os.getcwd(), os.env['CM_DOWNLOAD_FILENAME'])} -P"

filename = env['CM_DOWNLOAD_FILENAME']
env['CM_DOWNLOAD_DOWNLOADED_FILENAME'] = filename
Expand Down

0 comments on commit 357edcd

Please sign in to comment.