mkdir folders from config
This commit is contained in:
@ -37,10 +37,11 @@ download() {
|
|||||||
echo "$1" >> "$FAIL_FILE"
|
echo "$1" >> "$FAIL_FILE"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mkdir -p "$tmp_dir" "$log_dir"
|
||||||
Hentai generate "$1" "$tmp_dir" || exit 1
|
Hentai generate "$1" "$tmp_dir" || exit 1
|
||||||
|
|
||||||
[[ -f $FAIL_FILE ]] && rm -f "$FAIL_FILE"
|
[[ -f $FAIL_FILE ]] && rm -f "$FAIL_FILE" || touch "$FAIL_FILE"
|
||||||
[[ -f $SUCCESS_FILE ]] && rm -f "$SUCCESS_FILE"
|
[[ -f $SUCCESS_FILE ]] && rm -f "$SUCCESS_FILE" || touch "$SUCCESS_FILE"
|
||||||
|
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
url=$(awk '{print $1}' <<< "$line")
|
url=$(awk '{print $1}' <<< "$line")
|
||||||
|
Reference in New Issue
Block a user