Update alexa_remote_control.sh

pull/125/head
Korki67 2021-02-09 22:30:49 +01:00 committed by GitHub
parent 9f54660b76
commit 2df1f74adc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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