Use readlink -f instead of realpath

... because readlink has a better chance of being installed.
This commit is contained in:
Richard van der Hoff 2017-04-05 13:23:12 +01:00
parent f02c685d9a
commit 804edaad62
1 changed files with 2 additions and 2 deletions

View File

@ -3,8 +3,8 @@
set -eu
# make the GIT_DIR and GIT_INDEX_FILE absolute, before we change dir
export GIT_DIR=$(realpath `git rev-parse --git-dir`)
export GIT_INDEX_FILE=$(realpath `git rev-parse --git-path index`)
export GIT_DIR=$(readlink -f `git rev-parse --git-dir`)
export GIT_INDEX_FILE=$(readlink -f `git rev-parse --git-path index`)
wd=`pwd`