add interrupt functions

This commit is contained in:
2024-07-10 20:08:09 +02:00
parent 099119ae83
commit d4e37344e0

View File

@ -4,6 +4,13 @@ IGREEN="\033[0;92m" # Intense Green
IYELLOW="\033[0;93m" # Intense Yellow
NO_COLOR="\033[0m" # Text Reset
trap interrupt_function INT
interrupt_function() {
rm -f to_download_*.txt
exit 1
}
setup_test() {
[[ -d ./Artists ]] || mkdir ./Artists
rm -rf ./gallery-dl/*.sqlite3 ./gallery-dl/log.txt ./Artists/* || exit 1