diff options
author | Erich Eckner <git@eckner.net> | 2021-01-30 21:04:41 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-01-30 21:04:41 +0100 |
commit | e195d69dee4b307a783146cf6d232748ad06c5e0 (patch) | |
tree | 35ae9bba50f289f20d0fb3ca6547dc3ab9e4b605 | |
parent | 5ad99c4d06525cab4d1c31f3155212c0bebbc0ef (diff) | |
download | raspi-lights-out-e195d69dee4b307a783146cf6d232748ad06c5e0.tar.xz |
lights-out: fix arg count for "turn on"
-rw-r--r-- | lights-out.in | 4 |
1 files 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 |