Author: nextgens
Date: 2008-05-04 14:38:15 +0000 (Sun, 04 May 2008)
New Revision: 19745
Modified:
trunk/apps/new_installer/res/unix/bin/browse.sh
Log:
new_installer: fix a potential problem with spaces
Modified: trunk/apps/new_installer/res/unix/bin/browse.sh
===================================================================
--- trunk/apps/new_installer/res/unix/bin/browse.sh 2008-05-04 13:38:59 UTC
(rev 19744)
+++ trunk/apps/new_installer/res/unix/bin/browse.sh 2008-05-04 14:38:15 UTC
(rev 19745)
@@ -12,12 +12,12 @@
browseURL()
{
- `cat firefox.location` -no-remote -P freenet "$1" &
+ "`cat firefox.location`" -no-remote -P freenet "$1" &
}
if test -e firefox.location
then
- `cat firefox.location` "file://$INSTALL_PATH/dont-close-me.html" &
+ "`cat firefox.location`" "file://$INSTALL_PATH/dont-close-me.html" &
browseURL "$URL"
else
echo Detecting the location of Firefox
@@ -26,10 +26,10 @@
TRY="`which $name`"
if test -n "$TRY"
then
- echo $TRY > firefox.location
+ echo "$TRY" > firefox.location
echo Firefox found, creating a profile for freenet
- $TRY "file://$INSTALL_PATH/dont-close-me.html" &
- $TRY -no-remote -CreateProfile "freenet
$PWD/firefox_profile" >/dev/null
+ "$TRY" "file://$INSTALL_PATH/dont-close-me.html" &
+ "$TRY" -no-remote -CreateProfile "freenet
$PWD/firefox_profile" >/dev/null
browseURL "$URL"
exit
fi