Code

Updated script to behave right with ubuntu.
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jun 2007 13:28:45 +0000 (13:28 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 28 Jun 2007 13:28:45 +0000 (13:28 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@6736 594d385d-05f5-0310-b6e9-bd551577e9d8

contrib/scripts/start-gosa.sh

index fd0f821e6c61ec616a268631e1831f392bdb1f88..818a8a16a874e9dc8cbce6e0d2f5c0692652d7b6 100755 (executable)
@@ -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