timeout command not on macOS

Author: zam6akCreated May 4, 2021Updated Jul 13, 2023

Seems like timeout is not available on macOS

wait-for-it.sh  www.google.com:443 --timeout=10 -- echo "its up"
readlink: illegal option -- f
usage: readlink [-n] [file ...]
./scripts/wait-for-it.sh: line 58: timeout: command not found
wait-for-it.sh: timeout occurred after waiting 10 seconds for www.google.com:443
its up