From c37229d763a5e63f7e80917eceabde2ede0a350f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Wed, 25 Aug 2021 13:53:17 +0200 Subject: [PATCH] Update buildCaseStatement.sh --- utils/buildCaseStatement.sh | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/utils/buildCaseStatement.sh b/utils/buildCaseStatement.sh index cc4594a..07663ba 100755 --- a/utils/buildCaseStatement.sh +++ b/utils/buildCaseStatement.sh @@ -12,7 +12,10 @@ downloadURL=${1?:"need to provide a download URL"} # create temporary working directory -tmpDir=$(mktemp -d ) +# tmpDir=$(mktemp -d ) # create a temporary folder, can be removed in the bottom of script +# tmpDir=$(dirname "$0") # (REMEMBER to comment out removal of tmpDir in bottom of script) + +tmpDir=$(pwd) # use working directory as download folder (REMEMBER to comment out removal of tmpDir in bottom of script) # change directory to temporary working directory echo "Changing directory to $tmpDir" @@ -147,9 +150,9 @@ echo "Above should be saved in a file with exact same name as label, and given e echo "Put this file in folder “fragments/labels”." echo -if [ -e "${tmpDir}" ]; then - #echo "deleting tmp dir" - rm -rf "${tmpDir}" -fi +#if [ -e "${tmpDir}" ]; then +# #echo "deleting tmp dir" +# rm -rf "${tmpDir}" +#fi exit 0