From 2df1f74adcef0eea850d6c6471912c17b71c0858 Mon Sep 17 00:00:00 2001 From: Korki67 <78237123+Korki67@users.noreply.github.com> Date: Tue, 9 Feb 2021 22:30:49 +0100 Subject: [PATCH] Update alexa_remote_control.sh --- alexa_remote_control.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alexa_remote_control.sh b/alexa_remote_control.sh index 33a67d1..607a975 100755 --- a/alexa_remote_control.sh +++ b/alexa_remote_control.sh @@ -252,8 +252,8 @@ while [ "$#" -gt 0 ] ; do fi ;; -m) - if [ "${2#-}" != "${2}" -o -z "$2" ] ; then - echo "ERROR: missing argument for ${1}" + if [ "${2#-}" != "${2}" -o -z "$2" -o "$(echo "${2}" | tr [:upper:] [:lower:])" = "all" ] ; then + echo "ERROR: missing or invalid argument for ${1}" usage exit 1 fi