From 0ee0c1328afe380bb5d652da5272c65c4f6b7763 Mon Sep 17 00:00:00 2001 From: Matteo Date: Tue, 17 Mar 2026 16:28:54 +0100 Subject: [PATCH] feat : bug telechargement --- RebuildBdd/rebuild-bdd-core.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/RebuildBdd/rebuild-bdd-core.sh b/RebuildBdd/rebuild-bdd-core.sh index 9140fae..735e7be 100755 --- a/RebuildBdd/rebuild-bdd-core.sh +++ b/RebuildBdd/rebuild-bdd-core.sh @@ -101,6 +101,10 @@ require_cmd() { download_remote_file() { local remote_path="$1" local local_path="$2" + local local_dir + + local_dir="$(dirname "$local_path")" + mkdir -p "$local_dir" || fail "impossible de créer le dossier local de restauration : $local_dir" if scp "${SSH_OPTS[@]}" "${REMOTE_SSH}:${remote_path}" "$local_path" >>"$LOG_FILE" 2>&1; then return 0