From 1d634b9a80e9f79ef38bf176f784f35f93490a81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Theilgaard?= Date: Wed, 25 Aug 2021 13:16:57 +0200 Subject: [PATCH] Update buildCaseStatement.sh --- utils/buildCaseStatement.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/utils/buildCaseStatement.sh b/utils/buildCaseStatement.sh index 9d18ef3..cc4594a 100755 --- a/utils/buildCaseStatement.sh +++ b/utils/buildCaseStatement.sh @@ -12,7 +12,7 @@ downloadURL=${1?:"need to provide a download URL"} # create temporary working directory -tmpDir=$(dirname $0 ) +tmpDir=$(mktemp -d ) # change directory to temporary working directory echo "Changing directory to $tmpDir" @@ -122,6 +122,9 @@ elif [ "$archiveExt" = "zip" ] || [ "$archiveExt" = "tbz" ]; then fi +echo +echo "**********" +echo echo "Labels should be named in small caps, numbers 0-9, “-”, and “_”. No other characters allowed." echo echo "appNewVersion is often difficult to find. Can sometimes be found in the filename, but also on a web page. See archivePath above if link contains information about this." @@ -140,6 +143,9 @@ echo " appName=\"$appName\"" fi echo " ;;" echo +echo "Above should be saved in a file with exact same name as label, and given extension “.sh”." +echo "Put this file in folder “fragments/labels”." +echo if [ -e "${tmpDir}" ]; then #echo "deleting tmp dir"