From: cajus Date: Thu, 28 Jun 2007 13:28:45 +0000 (+0000) Subject: Updated script to behave right with ubuntu. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=999be4ed11d48f17abed497daaf1193a371f3c77;p=gosa.git Updated script to behave right with ubuntu. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6736 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/contrib/scripts/start-gosa.sh b/contrib/scripts/start-gosa.sh index fd0f821e6..818a8a16a 100755 --- a/contrib/scripts/start-gosa.sh +++ b/contrib/scripts/start-gosa.sh @@ -18,14 +18,15 @@ fi # What browser are we using? result="" +echo -n "Looking for browser: " for browser in iceweasel firefox mozilla; do - if which $browser &> /dev/null; then + if which $browser 2> /dev/null; then result=$browser break fi done if [ -z "$result" ]; then - echo "No suitable browser found to launch GOsa. You'll need iceweasel, firefox or mozilla in your PATH!" + echo "none found. You'll need iceweasel, firefox or mozilla in your PATH!" exit 1 fi browser=$result