diff options
author | Robert Peichaer <rpe@cvs.openbsd.org> | 2017-01-26 03:55:26 +0000 |
---|---|---|
committer | Robert Peichaer <rpe@cvs.openbsd.org> | 2017-01-26 03:55:26 +0000 |
commit | b42d63f328bc5a4961f3b999cee9e61f37abc79c (patch) | |
tree | 6e4e16012ef02074044f4a65d33f428a09be04a5 /usr.sbin | |
parent | 17272bfadb307fe426d5fad5bef1b0ed6c478292 (diff) |
Spacing and use arithmetic test
OK aja@
Diffstat (limited to 'usr.sbin')
-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 |