process cleanup attempt

Signed-off-by: Travis Glenn Hansen <travisghansen@yahoo.com>
This commit is contained in:
Travis Glenn Hansen 2021-12-11 16:05:50 -07:00
parent a43eafe1b0
commit 05540c6f51
1 changed files with 1 additions and 1 deletions

View File

@ -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