From 89226d95cde43401ac3773c73049f4e623baeac6 Mon Sep 17 00:00:00 2001 From: dam1n19 <dam1n19@soton.ac.uk> Date: Mon, 3 Apr 2023 14:08:12 +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 dac6971..c60d173 100755 --- 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 CHIPKIT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" + export CHIPKIT_DIR="$(cd -P "$(dirname "${BASH_SOURCE[0]:-${(%):-%x}}")" && pwd)" # If this Repo is root of workspace if [ $CHIPKIT_DIR = $DESIGN_ROOT ]; then -- GitLab