re-implement realpath when it does NOT exist

This commit is contained in:
Janek Bevendorff 2017-02-11 17:08:53 +01:00
parent 7ffbcebe4e
commit b367e105fa
No known key found for this signature in database
GPG Key ID: CFEC2F6850BFFA53

View File

@ -246,7 +246,7 @@ checkTransifexCommandExists() {
# re-implement realpath for OS X (thanks mschrag) # re-implement realpath for OS X (thanks mschrag)
# https://superuser.com/questions/205127/ # https://superuser.com/questions/205127/
if $(command -v realpath > /dev/null); then if ! $(command -v realpath > /dev/null); then
realpath() { realpath() {
pushd . > /dev/null pushd . > /dev/null
if [ -d "$1" ]; then if [ -d "$1" ]; then