On OS X 10.10.5, running this script calls readlink -f here, which fails, and causes the script to fail:
$ /usr/local/sbin/auto-mysql-backup/runmysqlbackup.sh
readlink: illegal option -- f
usage: readlink [-n] [file ...]
usage: dirname path
No confFile found; Remote copy DISABLED.
Couldn't find the automysqlbackup script.
Interesting thing is, running man readlink clearly shows a -f option:
-f format
Display information using the specified format. See the FORMATS section for a description of valid formats.
Is there a more failsafe way to define the $PDIR variable?
On OS X 10.10.5, running this script calls
readlink -fhere, which fails, and causes the script to fail:Interesting thing is, running
man readlinkclearly shows a-foption:-f format Display information using the specified format. See the FORMATS section for a description of valid formats.Is there a more failsafe way to define the
$PDIRvariable?