changeset 17093:e82d22396109

Backed out changeset: 841a9f98b97c
author Doug Simon <doug.simon@oracle.com>
date Wed, 10 Sep 2014 11:36:45 +0200
parents 2f64a6c771d5
children 86888df288ec
files mxtool/mx
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mxtool/mx	Wed Sep 10 11:04:13 2014 +0200
+++ b/mxtool/mx	Wed Sep 10 11:36:45 2014 +0200
@@ -28,7 +28,7 @@
 dir=`/bin/pwd`
 
 # Resolve location of this script so that mx.py can be found in the same directory
-source="$(basename $0)"
+source="${BASH_SOURCE[0]}"
 while [ -h "$source" ] ; do source="$(readlink "$source")"; done
 dir="$( cd -P "$( dirname "$source" )" && pwd )"