From b42d63f328bc5a4961f3b999cee9e61f37abc79c Mon Sep 17 00:00:00 2001 From: Robert Peichaer Date: Thu, 26 Jan 2017 03:55:26 +0000 Subject: Spacing and use arithmetic test OK aja@ --- usr.sbin/syspatch/syspatch.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.sbin') 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 # @@ -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 -- cgit v1.2.3