error handling
This commit is contained in:
parent
b7ae8b79c9
commit
327c8d6734
5
.bashrc
5
.bashrc
|
@ -154,8 +154,11 @@ timoulinette () {
|
|||
# Download tesfile
|
||||
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' "Download url is"
|
||||
printf '%s\n' "${git_full}"
|
||||
rm -f -- "${download_file_name}"
|
||||
return
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in New Issue