Update various scripts
This commit is contained in:
@@ -1,5 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
gallery-dl $1
|
||||
media_url=$1
|
||||
|
||||
gallery-dl $media_url
|
||||
cmd_exit_code=$?
|
||||
|
||||
if [[ $cmd_exit_code -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
|
||||
|
||||
find gallery-dl -type f -exec mv '{}' . \;
|
||||
rm --recursive gallery-dl
|
||||
|
||||
Reference in New Issue
Block a user