diff --git a/gallery-dl/gallery-dl.sh b/gallery-dl/gallery-dl.sh index fd3a4f3..9803f49 100755 --- a/gallery-dl/gallery-dl.sh +++ b/gallery-dl/gallery-dl.sh @@ -37,13 +37,13 @@ download() { echo -e "${IGREEN}has internet${NO_COLOR}" done + [[ $(hostname) != \s\a\t\a\n ]] && cp ./gallery-dl/archive-$1.sqlite3 /data/backup + if [ -s to_download_$1.txt ]; then exit 1 # exit with some kind of error # service should then send error and fitting message to ntfy fi - - [[ $(hostname) != \s\a\t\a\n ]] && cp ./gallery-dl/archive-$1.sqlite3 /data/backup } [[ $(hostname) == \s\a\t\a\n ]] && setup_test