Quit after signal

This commit is contained in:
sh+git@codevoid.de 2019-10-23 13:54:26 +00:00
parent bc804383a1
commit 7e402a21bf
1 changed files with 1 additions and 0 deletions

View File

@ -41,6 +41,7 @@ cleanup() {
# DELETE BROKEN IMAGES
printf '%s\n' "Removing incomplete thumbnails." >&2
find $THUMBNAIL_PATH -name "*_tmp.*" -exec rm -v "{}" \;
exit 1
}
trap cleanup 1 2 3 6