summaryrefslogtreecommitdiffstats
path: root/usr.sbin/syspatch/syspatch.sh
diff options
context:
space:
mode:
authorrpe <rpe@openbsd.org>2017-01-26 03:55:25 +0000
committerrpe <rpe@openbsd.org>2017-01-26 03:55:25 +0000
commit9320931bda1fc9cef93027fb8dc198b52095c8c8 (patch)
tree627c5931f5cf710d20dc86e0a6b2c718af12e2c8 /usr.sbin/syspatch/syspatch.sh
parentEach entry in REGRESS_TARGETS is run in a separate make process, so the (diff)
downloadwireguard-openbsd-9320931bda1fc9cef93027fb8dc198b52095c8c8.tar.xz
wireguard-openbsd-9320931bda1fc9cef93027fb8dc198b52095c8c8.zip
Spacing and use arithmetic test
OK aja@
Diffstat (limited to 'usr.sbin/syspatch/syspatch.sh')
-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 0be86b7e430..b808b7778ab 100644
--- a/usr.sbin/syspatch/syspatch.sh
+++ b/usr.sbin/syspatch/syspatch.sh
@@ -1,6 +1,6 @@
#!/bin/ksh
#
-# $OpenBSD: syspatch.sh,v 1.86 2017/01/19 23:41:57 ajacoutot Exp $
+# $OpenBSD: syspatch.sh,v 1.87 2017/01/26 03:55:25 rpe Exp $
#
# Copyright (c) 2016 Antoine Jacoutot <ajacoutot@openbsd.org>
#
@@ -295,8 +295,8 @@ while getopts clr arg; do
*) usage;;
esac
done
-shift $((OPTIND -1))
-[[ $# -ne 0 ]] && usage
+shift $((OPTIND - 1))
+(($# != 0)) && usage
if ((OPTIND == 1)); then
for _PATCH in $(ls_missing); do