Improves gdl.sh and images-indexer.sh scripts

This commit is contained in:
Matheus Albino
2024-06-19 07:57:11 -03:00
parent 8e732e0061
commit f4464491bb
2 changed files with 11 additions and 5 deletions

View File

@@ -8,13 +8,11 @@ fi
media_url=$1
gallery-dl $media_url
cmd_exit_code=$?
if [[ $cmd_exit_code -ne 0 ]]; then
if [[ $? -ne 0 ]]; then
printf "\n"
echo "[ERROR] `basename $0`: Could not download url \"$media_url\""
echo "[ERROR] Exit status: $cmd_exit_code"
exit 1
fi