From 63d528bac74e0344509b0788dcff2862b15e9fb8 Mon Sep 17 00:00:00 2001 From: Tilman Kamp Date: Wed, 5 Jul 2017 10:30:19 +0200 Subject: [PATCH] Fix #678; copying keep directory into right target directory --- bin/enqueue.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bin/enqueue.sh b/bin/enqueue.sh index b11b3f709e..4a26b5b3de 100755 --- a/bin/enqueue.sh +++ b/bin/enqueue.sh @@ -92,7 +92,7 @@ elif [ -f "$RUN_DIR" ]; then exit 1 fi mkdir -p "$RUN_DIR/src" -mkdir -p "$RUN_DIR/results/keep" +mkdir -p "$RUN_DIR/results" # copying local tree into "src" sub-directory of run directory # excluding .git @@ -100,9 +100,11 @@ rsync -av . "$RUN_DIR/src" --exclude=/.git # copying over "keep" data from continue run directory if [ "$CONTINUE_DIR" ]; then - cp -rf "$CONTINUE_DIR/results/keep" "$RUN_DIR/results/keep" + cp -rf "$CONTINUE_DIR/results/keep" "$RUN_DIR/results/" fi +mkdir -p "$RUN_DIR/results/keep" + # patch-creating job.sbatch file from job-template with our parameters sed \ -e "s/__ID__/$HASH/g" \