Realpath fix
parent
9c7319b958
commit
9091566d49
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue