Skip to content

Commit 9391c7c

Browse files
committed
FST: change for macOS
1 parent 4e4d2bb commit 9391c7c

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

prodtests/full-system-test/dpl-workflow.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@
44
# --configKeyValues "NameConf.mDirGRP=<dirname1>;NameConf.mDirGeom=<dirname2>;NameConf.mDirMatLUT=<dirname3>;"
55
# All workflows currently running in the FST parce the configKeyValues option, so the NameConf.mDirXXX keys can be added via global env.var.
66

7-
MYDIR="$(dirname $(readlink -f $0))"
7+
# Get this script's directory : use zsh first (e.g. on Mac) and fallback
8+
# on `readlink -f` if zsh is not there
9+
command -v zsh > /dev/null 2>&1 && MYDIR=$(dirname $(zsh -c 'echo ${0:A}' "$0"))
10+
test -z ${MYDIR+x} && MYDIR="$(dirname $(readlink -f $0))"
11+
812
source $MYDIR/setenv.sh
913

1014
if [ "0$O2_ROOT" == "0" ]; then

0 commit comments

Comments
 (0)