diff --git a/alexa_remote_control.sh b/alexa_remote_control.sh index 1b70849..2471820 100755 --- a/alexa_remote_control.sh +++ b/alexa_remote_control.sh @@ -270,8 +270,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