Exheredludis/paludis/repositories/e/ebuild/utils/canonicalise
Mike Kelly 8f0a81f559 Use /usr/bin/env bash instead of /bin/bash for the shebang of shell scripts.
This should make things run more nicely on systems like FreeBSD, where
bash isn't installed in /bin.
2008-07-09 01:17:08 -04:00

7 lines
97 B
Bash
Executable File

#!/usr/bin/env bash
case $(uname -s) in
FreeBSD) realpath "$@" ;;
*) readlink -f "$@" ;;
esac