summaryrefslogtreecommitdiff
path: root/usr.sbin/syspatch
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2016-11-10 10:27:32 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2016-11-10 10:27:32 +0000
commitbecfa197175d61fc065cb5a82617cbe2f5616834 (patch)
treeb3b3ddc2764f7ac1294d62206282340b965ebc8a /usr.sbin/syspatch
parent48a10cc1cdd33cd4165b3c3766bb5edc8a6481cd (diff)
Remove redundant check.
Diffstat (limited to 'usr.sbin/syspatch')
-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}"