diff --git a/tools/build.sh b/tools/build.sh index a0cc398a35..0b97e8d8df 100755 --- a/tools/build.sh +++ b/tools/build.sh @@ -114,7 +114,7 @@ echo -e "${RST}" detect_python || return 1 # Directories -pype_root=$(dirname $(realpath $(dirname $(dirname "${BASH_SOURCE[0]}")))) +pype_root=$(realpath $(dirname $(dirname "${BASH_SOURCE[0]}"))) pushd "$pype_root" || return > /dev/null version_command="import os;exec(open(os.path.join('$pype_root', 'pype', 'version.py')).read());print(__version__);" diff --git a/tools/create_env.sh b/tools/create_env.sh index d053e740c2..5e9f21abcc 100755 --- a/tools/create_env.sh +++ b/tools/create_env.sh @@ -120,7 +120,7 @@ echo -e "${RST}" detect_python || return 1 # Directories -pype_root=$(dirname $(realpath $(dirname $(dirname "${BASH_SOURCE[0]}")))) +pype_root=$(realpath $(dirname $(dirname "${BASH_SOURCE[0]}"))) pushd "$pype_root" || return > /dev/null echo -e "${BIGreen}>>>${RST} Reading Poetry ... \c"