Trap signals
This commit is contained in:
parent
ea9c420fd4
commit
0206e19175
|
@ -1,6 +1,9 @@
|
||||||
#/bin/bash
|
#/bin/bash
|
||||||
# This script can now self-update! \o/
|
# This script was indeed self-updated!
|
||||||
# This message appeared on the other side because self-update took place.
|
|
||||||
|
# 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"
|
BASEDIR="$HOME/.git-build"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user