more reliable autoprune behaviour
This commit is contained in:
parent
d50a9e4988
commit
84468952b9
@ -89,13 +89,13 @@ scan(){
|
|||||||
echo "Thread $url not found ($dl_location) pruning from cached list of threads to watch"
|
echo "Thread $url not found ($dl_location) pruning from cached list of threads to watch"
|
||||||
# shellcheck disable=SC2001
|
# shellcheck disable=SC2001
|
||||||
notify-send "threadwatcher" "Thread downloading to $(echo "$dl_location" | sed "s|$HOME|~|") is complete now."
|
notify-send "threadwatcher" "Thread downloading to $(echo "$dl_location" | sed "s|$HOME|~|") is complete now."
|
||||||
else
|
|
||||||
echo "$line" >> "$TMP_URLFILE"
|
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
echo "Cannot connect to 4chan."
|
echo "Cannot connect to 4chan."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
[ "$AUTOPRUNE" = 'false' ] &&
|
||||||
|
echo "$line" >> "$TMP_URLFILE"
|
||||||
continue
|
continue
|
||||||
else
|
else
|
||||||
echo "$line" >> "$TMP_URLFILE"
|
echo "$line" >> "$TMP_URLFILE"
|
||||||
|
Loading…
Reference in New Issue
Block a user