From e6e0323a709f14e9922ff20bbf59f4bd0e0b0e48 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 14 Mar 2008 16:43:18 +0000 Subject: [PATCH] fix launch.sh script when run from absolute path. fixes #3665 --- launch.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/launch.sh b/launch.sh index 7a3f8b5f6..e97a2fe84 100755 --- a/launch.sh +++ b/launch.sh @@ -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