Trap signals

This commit is contained in:
southerntofu 2020-04-17 23:40:30 -04:00
parent ea9c420fd4
commit 0206e19175
1 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,9 @@
#/bin/bash
# This script can now self-update! \o/
# This message appeared on the other side because self-update took place.
# This script was indeed self-updated!
# Catch signals so we don't leave zombie tasks behind if we Ctrl^C
trap "exit" INT TERM ERR
trap "kill 0" EXIT
BASEDIR="$HOME/.git-build"