Fix to make installer runnable from anywhere, bug 76223, r=sgehani, sr=alecf, a=asa

This commit is contained in:
girish.manwani%eng.sun.com 2001-06-15 00:17:00 +00:00
parent b8a6a8062f
commit 87118b8036

View File

@ -45,6 +45,13 @@ export PATH
MOZILLA_FIVE_HOME=.
export MOZILLA_FIVE_HOME
./mozilla-installer-bin --sync $@
BASEDIR=`dirname $0`
if [ "$BASEDIR" = "" ]; then
echo "dirname is not in your PATH"
./mozilla-installer-bin --sync $@
else
cd ${BASEDIR:-.}
./mozilla-installer-bin --sync $@
fi
rm -rf /tmp/.tmp.xi.*