diff --git a/bin/scripts/unix/idea.sh b/bin/scripts/unix/idea.sh index 8454f24a5963..ce5974673e5b 100755 --- a/bin/scripts/unix/idea.sh +++ b/bin/scripts/unix/idea.sh @@ -8,13 +8,13 @@ message() { TITLE="Cannot start @@product_full@@" - if [ -n `which zenity` ]; then + if [ -n "`which zenity`" ]; then zenity --error --title="$TITLE" --text="$1" - elif [ -n `which kdialog` ]; then + elif [ -n "`which kdialog`" ]; then kdialog --error --title "$TITLE" "$1" - elif [ -n `which xmessage` ]; then + elif [ -n "`which xmessage`" ]; then xmessage -center "ERROR: $TITLE: $1" - elif [ -n `which notify-send` ]; then + elif [ -n "`which notify-send`" ]; then notify-send "ERROR: $TITLE: $1" else echo "ERROR: $TITLE\n$1"