From e12cd83b80689d78e64e3132f3b69cabcd255f0b Mon Sep 17 00:00:00 2001 From: Janek Bevendorff Date: Wed, 1 Feb 2017 00:53:58 +0100 Subject: [PATCH] Check for existence of realpath instead of operating system --- release-tool | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release-tool b/release-tool index 11fdf501..be6bbc7a 100755 --- a/release-tool +++ b/release-tool @@ -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