summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syspatch/syspatch.sh
diff options
context:
space:
mode:
authorajacoutot <ajacoutot@openbsd.org>2016-11-10 10:27:31 +0000
committerajacoutot <ajacoutot@openbsd.org>2016-11-10 10:27:31 +0000
commit48ec4d30896a37ec6eb75b4f5389c269ea87bd04 (patch)
treef41591d11f42f85cdd0f26845c77137280598fac /usr.sbin/syspatch/syspatch.sh
parentCreate the bsd rollback kernel in create_rollback() (it is contained in (diff)
downloadwireguard-openbsd-48ec4d30896a37ec6eb75b4f5389c269ea87bd04.tar.xz
wireguard-openbsd-48ec4d30896a37ec6eb75b4f5389c269ea87bd04.zip
Remove redundant check.
Diffstat (limited to 'usr.sbin/syspatch/syspatch.sh')
-rw-r--r--usr.sbin/syspatch/syspatch.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/syspatch/syspatch.sh b/usr.sbin/syspatch/syspatch.sh
index 17d4e66bf9d..d4179f64943 100644
--- a/usr.sbin/syspatch/syspatch.sh
+++ b/usr.sbin/syspatch/syspatch.sh
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: syspatch.sh,v 1.43 2016/11/10 10:20:48 ajacoutot Exp $
+# $OpenBSD: syspatch.sh,v 1.44 2016/11/10 10:27:31 ajacoutot Exp $
#
# Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -101,7 +101,7 @@ create_rollback()
for _file in ${_files}; do
[[ -f /${_file} ]] || continue
# only save the original release kernel once
- if [[ ${_file} == bsd && -f /bsd && ! -f /bsd.rollback${_RELINT} ]]; then
+ if [[ ${_file} == bsd && ! -f /bsd.rollback${_RELINT} ]]; then
install -FSp /bsd /bsd.rollback${_RELINT}
fi
_rbfiles="${_rbfiles} ${_file}"