13 lines
307 B
Bash
Executable File
13 lines
307 B
Bash
Executable File
#!/bin/sh
|
|
## This is a compatibility wrapper for 'realpath'.
|
|
|
|
if command -v greadlink >/dev/null; then
|
|
## On BSD systems, we might have greadlink
|
|
greadlink -f "$@"
|
|
elif command -v readlink >/dev/null && [ "$(uname)" = "Linux" ]; then
|
|
readlink -f "$@"
|
|
else
|
|
## Dirty fallback
|
|
echo "$@"
|
|
fi
|