mirror of
https://github.com/mtan93/Installomator.git
synced 2026-03-29 22:04:09 +01:00
Update buildCaseStatement.sh
This commit is contained in:
@@ -12,7 +12,10 @@ downloadURL=${1?:"need to provide a download URL"}
|
|||||||
|
|
||||||
|
|
||||||
# create temporary working directory
|
# 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
|
# change directory to temporary working directory
|
||||||
echo "Changing directory to $tmpDir"
|
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 "Put this file in folder “fragments/labels”."
|
||||||
echo
|
echo
|
||||||
|
|
||||||
if [ -e "${tmpDir}" ]; then
|
#if [ -e "${tmpDir}" ]; then
|
||||||
#echo "deleting tmp dir"
|
# #echo "deleting tmp dir"
|
||||||
rm -rf "${tmpDir}"
|
# rm -rf "${tmpDir}"
|
||||||
fi
|
#fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|||||||
Reference in New Issue
Block a user