diff --git a/run b/run index c740a5e..fcdca55 100755 --- a/run +++ b/run @@ -42,7 +42,6 @@ def deploy_file(source_file, target, auth): if is_target_http(target): run(["curl", "--user", auth, target, "--upload-file", source_file], check=True) else: - make_parent_dirs(target, auth) run(["scp", "-i", auth, "-o", "StrictHostKeyChecking=no", "-o", "PasswordAuthentication=no", "-r", source_file, target], check=True) temp_file_name = None @@ -60,6 +59,7 @@ try: else: auth = os.environ['PLUGIN_AUTHENTICATION'] + make_parent_dirs(TARGET, auth) deploy(SOURCE, TARGET, auth) finally: if temp_file_name is not None: