Use "readlink -f" if realpath command is not available
This commit is contained in:
parent
b71a6e448b
commit
5059118e8c
1 changed files with 5 additions and 0 deletions
|
@ -84,6 +84,11 @@ readonly VIRTUAL_PKG=".make-$PROGNAME"
|
|||
: ${APK_OPTS:="--no-progress"}
|
||||
|
||||
|
||||
# For compatibility with systems that does not have "realpath" command.
|
||||
if ! command -v realpath 2>/dev/null; then
|
||||
alias realpath='readlink -f'
|
||||
fi
|
||||
|
||||
die() {
|
||||
printf '\033[1;31mERROR:\033[0m %s\n' "$@" >&2 # bold red
|
||||
exit 1
|
||||
|
|
Loading…
Reference in a new issue