Realpath fix

master
Pierre Neidhardt 2013-09-02 12:00:49 +02:00
parent 9c7319b958
commit 9091566d49
1 changed files with 2 additions and 2 deletions

View File

@ -1,10 +1,10 @@
#!/bin/sh #!/bin/sh
## This is a compatibility wrapper for 'realpath'. ## 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 ## On BSD systems, we might have greadlink
greadlink -f "$@" greadlink -f "$@"
elif [ -z "$(command -v readlink)" ] && [ "$(uname)" = "Linux" ] elif [ -n "$(command -v readlink)" ] && [ "$(uname)" = "Linux" ]; then
readlink -f "$@" readlink -f "$@"
else else
## Dirty fallback ## Dirty fallback