Check for existence of realpath instead of operating system

This commit is contained in:
Janek Bevendorff 2017-02-01 00:53:58 +01:00
parent 040b476359
commit e12cd83b80
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)
# https://superuser.com/questions/205127/how-to-retrieve-the-absolute-path-of-an-arbitrary-file-from-the-os-x
if [ "$(uname -s)" == "Darwin" ]; then
if $(command -v realpath > /dev/null); then
realpath() {
pushd . > /dev/null
if [ -d "$1" ]; then