summaryrefslogtreecommitdiff
path: root/usr.sbin/syspatch/syspatch.sh
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-05-24 08:30:32 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-05-24 08:30:32 +0000
commit79e098a5d54d50af3c982f6cdb412fa7cc74159f (patch)
treeffa1fe061caf859acd3d336a96c714c4d3cd103e /usr.sbin/syspatch/syspatch.sh
parent0a9d4e1849e65fa36bbe6e596fb124bc704af37e (diff)
Also trap INT when reverting a patch.
Diffstat (limited to 'usr.sbin/syspatch/syspatch.sh')
-rw-r--r--usr.sbin/syspatch/syspatch.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh
index b355d5369db..33785e74bb4 100644
--- a/usr.sbin/syspatch/syspatch.sh
+++ b/usr.sbin/syspatch/syspatch.sh
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: syspatch.sh,v 1.106 2017/05/23 13:08:28 ajacoutot Exp $
+# $OpenBSD: syspatch.sh,v 1.107 2017/05/24 08:30:31 ajacoutot Exp $
#
# Copyright (c) 2016, 2017 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -214,6 +214,7 @@ rollback_patch()
_edir=${_TMP}/${_patch}-rollback
_patch=${_OSrev}-${_patch}
+ trap '' INT
echo "Reverting patch ${_patch##${_OSrev}-}"
install -d ${_edir}
@@ -235,6 +236,7 @@ rollback_patch()
((_ret == 0)) && rm -r ${_PDIR}/${_patch} ||
sp_err "Failed to revert patch ${_patch##${_OSrev}-}" ${_ret}
+ trap exit INT
}
sp_cleanup()