diff options
author | 2016-11-21 14:43:52 +0000 | |
---|---|---|
committer | 2016-11-21 14:43:52 +0000 | |
commit | 275f570239be215ef7050a8d2ca8775e750421f8 (patch) | |
tree | 5e34bb8a217b973f1e84b911af9187086bb4e5f0 | |
parent | Add Copyright and license. (diff) | |
download | wireguard-openbsd-275f570239be215ef7050a8d2ca8775e750421f8.tar.xz wireguard-openbsd-275f570239be215ef7050a8d2ca8775e750421f8.zip |
Tweak comment. Reverse cmp logic while here.
-rw-r--r-- | usr.sbin/syspatch/syspatch.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index 29d6eaacfc7..d933bada646 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.56 2016/11/17 15:15:49 ajacoutot Exp $ +# $OpenBSD: syspatch.sh,v 1.57 2016/11/21 14:43:52 ajacoutot Exp $ # # Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org> # @@ -264,14 +264,14 @@ sp_cleanup() [[ ${_d:##*/} == ${_REL} ]] || rm -r ${_d} done - # remove non matching release rollback kernel + # remove non matching release backup kernel for _k in /bsd.syspatch*; do [[ -f ${_k} ]] || continue [[ ${_k} == /bsd.syspatch${_RELINT} ]] || rm ${_k} done # remove rollback kernel if all kernel syspatches have been reverted - cmp -s /bsd /bsd.syspatch${_RELINT} && rm /bsd.syspatch${_RELINT} + ! cmp -s /bsd /bsd.syspatch${_RELINT} || rm /bsd.syspatch${_RELINT} # in case a patch added a new directory (install -D); # non-fatal in case some mount point is read-only or remote |