util/fluxbox-generate_menu: default browswer variable can be empty

Noticed when debugging in mac.
This commit is contained in:
Sami Kerola 2012-12-31 16:50:57 +00:00 committed by Mathias Gumz
parent dcdfdfd56b
commit be2c52a146

View file

@ -1530,7 +1530,11 @@ else
done done
fi fi
DEFAULT_BROWSERNAME=`echo $DEFAULT_BROWSER|awk '{print $1}'` DEFAULT_BROWSERNAME=`echo $DEFAULT_BROWSER|awk '{print $1}'`
DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME` if [ "x$DEFAULT_BROWSERNAME" != "x" ]; then
DEFAULT_BROWSERNAME=`basename $DEFAULT_BROWSERNAME`
else
DEFAULT_BROWSERNAME="firefox"
fi
if [ -z "$LAUNCHER" ]; then if [ -z "$LAUNCHER" ]; then
LAUNCHER=@pkgprefix@fbrun@pkgsuffix@@EXEEXT@ LAUNCHER=@pkgprefix@fbrun@pkgsuffix@@EXEEXT@