diff --git a/scripts/activate-phoebus.in b/scripts/activate-phoebus.in index 2b81d7c..e2faf66 100644 --- a/scripts/activate-phoebus.in +++ b/scripts/activate-phoebus.in @@ -57,14 +57,14 @@ function set_variable } -# THIS_SRC=${BASH_SOURCE[0]:-${0}} +THIS_SRC=${BASH_SOURCE[0]:-${0}} -# if [ -L $THIS_SRC ]; then -# SRC_PATH="$( cd -P "$( dirname $(readlink -f "$THIS_SRC") )" && pwd )" -# else -# SRC_PATH="$( cd -P "$( dirname "$THIS_SRC" )" && pwd )" -# fi +if [ -L $THIS_SRC ]; then + SRC_PATH="$( cd -P "$( dirname $(readlink -f "$THIS_SRC") )" && pwd )" +else + SRC_PATH="$( cd -P "$( dirname "$THIS_SRC" )" && pwd )" +fi # SRC_NAME=${THIS_SRC##*/}