From 534a8abc08f532a5ad8cd45dfe5a45867d54c511 Mon Sep 17 00:00:00 2001 From: Gregory Marco Date: Sat, 25 Apr 2026 14:00:22 -0500 Subject: [PATCH] add logging for command, actually specify host (duh) --- run | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/run b/run index c8eb8d6..2db1fc9 100755 --- a/run +++ b/run @@ -30,7 +30,8 @@ def apply_key_permissions(keyfile): run(["Icacls", keyfile]) def run_command(host, command, auth): - run(["ssh", "-i", auth, "-o", "StrictHostKeyChecking=no", "-o", "PasswordAuthentication=no", "sh", "-c", command], check=True) + print(f">> [exec] {host} {command}") + run(["ssh", "-i", auth, "-o", "StrictHostKeyChecking=no", "-o", "PasswordAuthentication=no", host, "sh", "-c", command], check=True) def make_parent_dirs(target, auth): if is_target_http(target): @@ -44,7 +45,7 @@ def deploy(source, target, auth): deploy_file(source_file, target, auth) def deploy_file(source_file, target, auth): - print(f">> {source_file} -> {target}") + print(f">> [deploy] {source_file} -> {target}") if is_target_http(target): run(["curl", "--user", auth, target, "--upload-file", source_file], check=True) else: