Improves gdl.sh and images-indexer.sh scripts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user