From 122f53f80402cca5336dc64cbd1401d60f5cb308 Mon Sep 17 00:00:00 2001 From: Matteo Date: Tue, 17 Mar 2026 13:55:25 +0100 Subject: [PATCH] feat : correction bug scp (WIP) --- RebuildBdd/bootstrap-target-host.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/RebuildBdd/bootstrap-target-host.sh b/RebuildBdd/bootstrap-target-host.sh index b534114..f6b9243 100755 --- a/RebuildBdd/bootstrap-target-host.sh +++ b/RebuildBdd/bootstrap-target-host.sh @@ -122,10 +122,10 @@ copy_file_to_remote_via_ssh() { test -w $(shell_quote "$remote_parent") " >/dev/null 2>&1 || fail "dossier distant absent ou non inscriptible : $remote_parent" - cat "$local_file" | ssh "${SSH_OPTS[@]}" "$REMOTE" " + ssh "${SSH_OPTS[@]}" "$REMOTE" " set -euo pipefail cat > $(shell_quote "$remote_tmp") - " >/dev/null 2>&1 || fail "échec de copie distante via SSH vers ${remote_tmp}" + " < "$local_file" >/dev/null 2>&1 || fail "échec d'écriture temporaire distante : $remote_tmp" ssh "${SSH_OPTS[@]}" "$REMOTE" " set -euo pipefail