making this shit better one line at a time

This commit is contained in:
2024-11-14 01:41:52 +01:00
parent 88b993cf13
commit 09f2c03863
2 changed files with 135 additions and 25 deletions

View File

@ -6,7 +6,6 @@ NO_COLOR="\033[0m" # Text Reset
IN_FILE="$1_generated.txt"
SUCCESS_FILE="$1_success.txt"
FAIL_FILE="$1_failed.txt"
BOOL_SUCCESS=0
if [[ $(hostname) == \s\a\t\a\n ]]; then
[[ -d ./Artists ]] || mkdir ./Artists
@ -52,8 +51,8 @@ while IFS= read -r line; do
path=$(echo "$line" | awk '{print $3}')
download $url $path
exit
done < "$IN_FILE"
[[ $(hostname) != \s\a\t\a\n ]] && cp ./gallery-dl/archive-${$1,,}.sqlite3 /data/backup
[[ -s $FAIL_FILE ]] && curl -d 'bruh' ntfy.hopeless-cloud.xyz/Hentai
[[ $(hostname) != \s\a\t\a\n ]] && cp ./gallery-dl/archive-${1,,}.sqlite3 /data/backup