error handling

This commit is contained in:
Timo Schmidt 2023-03-31 18:54:47 +02:00
parent b7ae8b79c9
commit 327c8d6734
1 changed files with 4 additions and 1 deletions

View File

@ -154,8 +154,11 @@ timoulinette () {
# Download tesfile # Download tesfile
curl -sL "${git_full}" -o "${download_file_name}" curl -sL "${git_full}" -o "${download_file_name}"
if [ ! "${?}" = "1" ] ; then if [ ! "${?}" = "0" ] ; then
printf '%s\n' "There's now testfile for this task, sorry!" printf '%s\n' "There's now testfile for this task, sorry!"
printf '%s\n' "Download url is"
printf '%s\n' "${git_full}"
rm -f -- "${download_file_name}"
return return
fi fi