Convert readlink to greadlink.

parent 35d79b94
......@@ -23,7 +23,7 @@ set -euo pipefail
if [[ $(uname) = Darwin ]] && which greadlink >/dev/null 2>&1; then
alias readlink=greadlink
fi
projectDir=$(readlink -f "$0")
projectDir=$(greadlink -f "$0")
projectDir=$(dirname "$projectDir")
declare -r projectDir
. "$projectDir/common.sh"
......
......@@ -23,7 +23,7 @@ set -euo pipefail
if [[ $(uname) = Darwin ]] && which greadlink >/dev/null 2>&1; then
alias readlink=greadlink
fi
projectDir=$(readlink -f "$0")
projectDir=$(greadlink -f "$0")
projectDir=$(dirname "$projectDir")
declare -r projectDir
. "$projectDir/common.sh"
......
......@@ -28,7 +28,7 @@ set -euo pipefail
if [[ $(uname) = Darwin ]] && which greadlink >/dev/null 2>&1; then
alias readlink=greadlink
fi
projectDir=$(readlink -f "$0")
projectDir=$(greadlink -f "$0")
projectDir=$(dirname "$projectDir")
projectDir=$(dirname "$projectDir")
declare -r projectDir
......
......@@ -27,7 +27,7 @@ fi
# Merging these lines won't cause the command to fail (for set -e).
projectDir=$(git rev-parse --git-dir)
projectDir=$(readlink -f "$projectDir")
projectDir=$(greadlink -f "$projectDir")
projectDir=$(dirname "$projectDir")
declare -r projectDir
cd "$projectDir"
......
......@@ -24,7 +24,7 @@ set -euo pipefail
if [[ $(uname) = Darwin ]] && which greadlink >/dev/null 2>&1; then
alias readlink=greadlink
fi
qtahDir=$(readlink -f "$0")
qtahDir=$(greadlink -f "$0")
qtahDir=$(dirname "$qtahDir")
qtahDir=$(dirname "$qtahDir")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment