diff --git a/bin/bash_shared/defines.sh b/bin/bash_shared/defines.sh index 8d30720b5..512173a8b 100644 --- a/bin/bash_shared/defines.sh +++ b/bin/bash_shared/defines.sh @@ -1,4 +1,9 @@ -AC_PATH_ROOT=$(readlink -f "$AC_PATH_BIN/../") +unamestr=`uname` +if [[ "$unamestr" == 'Darwin' ]]; then + AC_PATH_ROOT=$(greadlink -f "$AC_PATH_BIN/../") +else + AC_PATH_ROOT=$(readlink -f "$AC_PATH_BIN/../") +fi AC_PATH_CONF="$AC_PATH_ROOT/conf"