Trap signals
This commit is contained in:
parent
ea9c420fd4
commit
0206e19175
|
@ -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"
|
||||
|
||||
|
|
Loading…
Reference in New Issue