process cleanup attempt
Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
parent
a43eafe1b0
commit
05540c6f51
|
|
@ -4,7 +4,7 @@ set -e
|
|||
set -x
|
||||
|
||||
_term() {
|
||||
[[ -n "${SUDO_PID}" ]] && kill -- "${SUDO_PID}"
|
||||
[[ -n "${SUDO_PID}" ]] && sudo kill -- "${SUDO_PID}"
|
||||
}
|
||||
|
||||
trap _term EXIT
|
||||
|
|
|
|||
Loading…
Reference in New Issue