perfsonar / docker-devbox

A Docker-based development container with some useful features
Apache License 2.0
0 stars 0 forks source link

readlink -f and others don't exist on MacOS #3

Closed laeti-tia closed 1 year ago

laeti-tia commented 2 years ago

Used in setup. Output from Big Sur (11.6.8) bash (5.1.16 from Homebrew):

$ ./setup --aliases
readlink: illegal option -- f
usage: readlink [-n] [file ...]

Some options to replace it are discussed at https://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac

And getent doesn't either:

docker-devbox/libexec/commands/boot: line 27: getent: command not found
mfeit-internet2 commented 1 year ago

This is fixed; let me know if you have problems with it.