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:
Philip Eisenlohr 2014-01-07 23:38:58 +00:00
parent 2a5443d41a
commit e7903e900e
1 changed files with 2 additions and 1 deletions

View File

@ -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