From 1b44bd678d58dc5247482eba8d871d2d96b27017 Mon Sep 17 00:00:00 2001 From: Jeong Han Lee Date: Fri, 11 Oct 2024 23:58:06 -0400 Subject: [PATCH] resume the current path logic in activate-phoebus.in --- scripts/activate-phoebus.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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##*/}