arduino yun bash script not working

Hi, I’m trying to send a notification using Pushsafer from my Arduino Yun, I wrote this bash script:

while getopts t:msg:dev:pic:apikey:ico: option
do
 case "${option}"
 in
 t) TITLE=${OPTARG};;
 msg) MESSAGE=${OPTARG};;
 dev) DEVICE=${OPTARG};;
 pic) PICTURE=${OPTARG};;
 apikey) APIKEY=${OPTARG};;
 ico) ICON=${OPTARG};;
done
curl -s \
  --form-string "t=$TITLE" \
  --form-string "m=$MESSAGE" \
  --form-string "s=" \
  --form-string "v=" \
  --form-string "i=$ICON" \
  --form-string "c=iconcolor" \
  --form-string "d=$DEVICE" \
  --form-string "u=" \
  --form-string "ut=" \
  --form-string "p=$ICON" \
  --form-string "k=$APIKEY" \    https://www.pushsafer.com/api

But every time I try to execute this script in the Linux Terminal I get this error:
./pushsafer_example.sh: line 11: syntax error: unexpected newline (expecting “)”)

Your case does not have matching esac.