mirror of
https://github.com/dynup/kpatch
synced 2024-12-23 21:52:07 +00:00
Merge pull request #549 from jpoimboe/trap-sighup
kpatch-build: cleanup on SIGHUP
This commit is contained in:
commit
232b2a108d
@ -278,7 +278,7 @@ mkdir -p "$TEMPDIR" || die "Couldn't create $TEMPDIR"
|
||||
rm -rf "$TEMPDIR"/*
|
||||
rm -f "$LOGFILE"
|
||||
|
||||
trap cleanup EXIT INT TERM
|
||||
trap cleanup EXIT INT TERM HUP
|
||||
|
||||
KVER=${ARCHVERSION%%-*}
|
||||
if [[ $ARCHVERSION =~ - ]]; then
|
||||
|
Loading…
Reference in New Issue
Block a user