From 449dff8e21ada114a797a5a90085de1dfe41feb4 Mon Sep 17 00:00:00 2001 From: dam1n19 <dam1n19@soton.ac.uk> Date: Mon, 3 Apr 2023 14:08:19 +0100 Subject: [PATCH] SOC1-124: Updated flow to work with bash --- set_env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/set_env.sh b/set_env.sh index b85e7e7..eddb5b7 100644 --- a/set_env.sh +++ b/set_env.sh @@ -24,7 +24,7 @@ if [ -z $DESIGN_ROOT ]; then source $DESIGN_ROOT/set_env.sh else # Set Environment Variable for this Repository - export SOCSIM_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" + export SOCSIM_DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}")" && pwd)" # If this Repo is root of workspace if [ $SOCSIM_DIR = $DESIGN_ROOT ]; then -- GitLab