summaryrefslogtreecommitdiff
path: root/usr.sbin/syspatch
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-08-29 10:18:08 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2017-08-29 10:18:08 +0000
commit785e89dd902016b9051da0069f89b09ad951c61e (patch)
treea83545f85837a8e08e0d33bdb48fd4bf4f1bce33 /usr.sbin/syspatch
parentc861c6d3fdd74690532fb30acfa2eb7580178629 (diff)
Fix logic to not error out.
Diffstat (limited to 'usr.sbin/syspatch')
-rw-r--r--usr.sbin/syspatch/syspatch.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh
index 3e414967602..2c65e8b5ed2 100644
--- a/usr.sbin/syspatch/syspatch.sh
+++ b/usr.sbin/syspatch/syspatch.sh
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: syspatch.sh,v 1.125 2017/08/28 09:53:14 ajacoutot Exp $
+# $OpenBSD: syspatch.sh,v 1.126 2017/08/29 10:18:07 ajacoutot Exp $
#
# Copyright (c) 2016, 2017 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -67,8 +67,8 @@ apply_patch()
'(^|[[:blank:]]+)usr/share/compile/GENERI(C|C.MP)/[[:print:]]+([[:blank:]]+|$)' ||
_KARL=true
- ${_upself} && sp_err "syspatch updated itself, run it again to install \
-missing patches" 2
+ ! ${_upself} || sp_err "syspatch updated itself, run it again to \
+install missing patches" 2
}
# quick-and-dirty filesystem status and size checks: