From e195d69dee4b307a783146cf6d232748ad06c5e0 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Sat, 30 Jan 2021 21:04:41 +0100 Subject: lights-out: fix arg count for "turn on" --- lights-out.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lights-out.in b/lights-out.in index d063355..8d90c02 100644 --- a/lights-out.in +++ b/lights-out.in @@ -105,8 +105,8 @@ case "$1" in gpio write "${outputs["$2"]}" 0 || exit $? ;; 'turn') - if [ $# -ne 3 ] \ - || [ "x$3" != 'xon' ]; then + if [ $# -ne 2 ] \ + || [ "x$2" != 'xon' ]; then >&2 printf 'unknown command "%s"\n\n' "$*" display_help exit 1 -- cgit v1.2.3-54-g00ecf