From ce2832a5848b5650b3b3b2f941701c15185e952d Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 20 May 2026 17:22:34 -0400 Subject: [PATCH] fix(build): replace scp with ssh+cat to handle space in username scp's own user@host:path parser splits on the space in 'speaker ready' even when the shell argument is quoted. ssh already handles it correctly. Upload: ssh cat < file; Download: ssh cat > file. --- scripts/remote-build-display-control.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/remote-build-display-control.sh b/scripts/remote-build-display-control.sh index 4abc7d0..e6fb609 100755 --- a/scripts/remote-build-display-control.sh +++ b/scripts/remote-build-display-control.sh @@ -39,7 +39,7 @@ echo "════════════════════════ echo "" echo "Step 1/4 — Copying source to $IP..." ssh "$SSH_USER@$IP" "mkdir -p $REMOTE_TMP" -scp "$SRC" "$SSH_USER@$IP:$REMOTE_TMP/display_control.m" +ssh "$SSH_USER@$IP" "cat > $REMOTE_TMP/display_control.m" < "$SRC" # ── Step 2: Build universal binary on remote ────────────────────────────────── @@ -72,7 +72,7 @@ ENDSSH echo "" echo "Step 3/4 — Pulling binary to resources/bin/..." mkdir -p "$(dirname "$OUT_BIN")" -scp "$SSH_USER@$IP:$REMOTE_TMP/display_control" "$OUT_BIN" +ssh "$SSH_USER@$IP" "cat $REMOTE_TMP/display_control" > "$OUT_BIN" chmod +x "$OUT_BIN" # ── Step 4: Clean up remote ───────────────────────────────────────────────────