removed non-OS X compatible use of readlink command. no use stat and extract final string from result (which is the location of the directory following any links)
This commit is contained in:
parent
2a5443d41a
commit
e7903e900e
|
@ -1,6 +1,7 @@
|
|||
# sets up an environment for DAMASK on bash
|
||||
# usage: source DAMASK_env.sh
|
||||
LOCATION=$(readlink -f "`dirname $BASH_SOURCE`")
|
||||
STAT=$(stat "`dirname $BASH_SOURCE`")
|
||||
LOCATION=${STAT##* }
|
||||
export DAMASK_ROOT=${LOCATION}
|
||||
export DAMASK_NUM_THREADS=2
|
||||
# disable output in case of scp
|
||||
|
|
Loading…
Reference in New Issue