add interrupt functions
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user