fix launch.sh script when run from absolute path. fixes #3665

This commit is contained in:
Yann Leboulanger 2008-03-14 16:43:18 +00:00
parent 8d4a0dd203
commit e6e0323a70
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,9 @@
#!/bin/bash
BASE=`pwd`/`dirname $0`
if [[ $0 == /* ]]; then
BASE=`dirname $0`
else
BASE=`pwd`/`dirname $0`
fi
OS=`uname -s`
if [ "x${OS}" == "xDarwin" ]; then