From 0c01329371e364bbe1617431084628fba4fd2c7e Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 20 Dec 2013 13:20:46 -0500 Subject: [PATCH] Fix elif syntax error --- bin/prowl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/prowl b/bin/prowl index 86f29da4..9ef6c164 100755 --- a/bin/prowl +++ b/bin/prowl @@ -18,8 +18,8 @@ if [ $# -eq "3" ]; then APP="$1" TITLE="$2" MSG="$3" -if [ $# -eq "2" ]; then - APP=`hostname` +elif [ $# -eq "2" ]; then + APP="`hostname`" TITLE="$2" MSG="$3" else @@ -32,4 +32,3 @@ curl -s https://api.prowlapp.com/publicapi/add \ -F application="$APP" \ -F event="$TITLE" \ -F description="$MSG" -