From 9091566d49f34c5bfde5b19bb27dff4080265557 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Mon, 2 Sep 2013 12:00:49 +0200 Subject: [PATCH] Realpath fix --- .scripts/realpath | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.scripts/realpath b/.scripts/realpath index 0b5a81f6..09d54751 100755 --- a/.scripts/realpath +++ b/.scripts/realpath @@ -1,10 +1,10 @@ #!/bin/sh ## This is a compatibility wrapper for 'realpath'. -if [ -z "$(command -v greadlink)" ] +if [ -n "$(command -v greadlink)" ]; then ## On BSD systems, we might have greadlink greadlink -f "$@" -elif [ -z "$(command -v readlink)" ] && [ "$(uname)" = "Linux" ] +elif [ -n "$(command -v readlink)" ] && [ "$(uname)" = "Linux" ]; then readlink -f "$@" else ## Dirty fallback