diff options
author | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2016-09-06 14:33:43 +0000 |
---|---|---|
committer | Antoine Jacoutot <ajacoutot@cvs.openbsd.org> | 2016-09-06 14:33:43 +0000 |
commit | 81116512c1f82af4fed9021a22ab1595f9524f9d (patch) | |
tree | b8817366154b2250396973f2d8ccf2ee43cd54f9 /usr.sbin | |
parent | a7a10bbe276f67a0fc6616fb1069437421437054 (diff) |
Drop useless variable and check.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/syspatch/syspatch.sh | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh index 1c8a110b66e..ae044d7ee70 100644 --- a/usr.sbin/syspatch/syspatch.sh +++ b/usr.sbin/syspatch/syspatch.sh @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: syspatch.sh,v 1.7 2016/09/06 14:32:06 ajacoutot Exp $ +# $OpenBSD: syspatch.sh,v 1.8 2016/09/06 14:33:42 ajacoutot Exp $ # # Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org> # @@ -131,20 +131,17 @@ install_file() install_kernel() { - local _backup=false _bsd=/bsd _kern=$1 + local _bsd=/bsd _kern=$1 [[ -n ${_kern} ]] # we only save the original release kernel once - [[ -f /bsd.rollback${_RELINT} ]] || _backup=true + [[ -f /bsd.rollback${_RELINT} ]] || \ + install -FSp /bsd /bsd.rollback${_RELINT} if ${_BSDMP}; then [[ ${_kern##*/} == bsd ]] && _bsd=/bsd.sp fi - if ${_backup}; then - install -FSp /bsd /bsd.rollback${_RELINT} || return - fi - if [[ -n ${_bsd} ]]; then install -FS ${_kern} ${_bsd} || return fi |