now downloads interim files to working directory

This commit is contained in:
Armin Briegel
2020-04-29 16:25:29 +02:00
parent 5128bc96ef
commit f2e66d5e24

View File

@@ -8,7 +8,7 @@ downloadURL=${1?:"need to provide a download URL"}
# create temporary working directory # create temporary working directory
tmpDir=$(mktemp -d ) tmpDir=$(dirname $0 )
# change directory to temporary working directory # change directory to temporary working directory
echo "Changing directory to $tmpDir" echo "Changing directory to $tmpDir"
@@ -82,9 +82,9 @@ fi
echo " ;;" echo " ;;"
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