From 51a28461e9997ffaa98c82fca96751c7540d8b21 Mon Sep 17 00:00:00 2001 From: "Bernhard F.W. Gschaider" Date: Wed, 21 Aug 2013 00:58:36 +0200 Subject: [PATCH] Work around a problem when the absolute path is specified --HG-- branch : bgschaid/minorAdditionsBranch --- etc/bashrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/etc/bashrc b/etc/bashrc index 8365dabeb..8be79b369 100644 --- a/etc/bashrc +++ b/etc/bashrc @@ -47,6 +47,10 @@ export WM_PROJECT_VERSION=1.6-ext if [ -z "$WM_PROJECT_VERSION_ADDITION" ] then fullScriptPath=`pwd`"/$0" + if [ ! -e $fullScriptPath ] + then + fullScriptPath=$0 + fi canonicalFullScriptPath="$(readlink 2>&1 -f $fullScriptPath)" if [ $? != 0 ] then