From 37b529f1795a737f0a7f0d5edc26cdbc4f7aaa3a Mon Sep 17 00:00:00 2001 From: joshemb <josh@elixxir.io> Date: Fri, 17 Feb 2023 11:07:51 -0800 Subject: [PATCH] Fix a bug with running network.sh --- gen/run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gen/run.sh b/gen/run.sh index 12f53f6..561b76b 100755 --- a/gen/run.sh +++ b/gen/run.sh @@ -3,6 +3,11 @@ ## Initial Set Up & Clean Up of Past Runs ################################################################################ +# Copy file into folder if it does not already exist +if [ ! -f network.sh ]; then + cp ../network/network.sh . +fi + set -e rm -fr results.bak || true mv results results.bak || rm -fr results || true @@ -172,3 +177,8 @@ then #echo "NOTE: BACKUP CHECK DISABLED, this should be uncommented when turned back on!" #diff -aruN client121BackupDiff.txt noerrors.txt fi + +# Remove the file if it exists +if [ -f network.sh ]; then + rm network.sh +fi \ No newline at end of file -- GitLab