diff options
author | 2017-01-26 03:55:25 +0000 | |
---|---|---|
committer | 2017-01-26 03:55:25 +0000 | |
commit | 9320931bda1fc9cef93027fb8dc198b52095c8c8 (patch) | |
tree | 627c5931f5cf710d20dc86e0a6b2c718af12e2c8 /usr.sbin/syspatch/syspatch.sh | |
parent | Each entry in REGRESS_TARGETS is run in a separate make process, so the (diff) | |
download | wireguard-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.sh | 6 |
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 |