KWStyle icon indicating copy to clipboard operation
KWStyle copied to clipboard

updateBoost.sh doesn't work on macOS because 'dirname' doesn't have '--version' option

Open seanm opened this issue 7 years ago • 2 comments

@thewtex KWSys's updateBoost.sh script doesn't work on macOS because the macOS 'dirname' doesn't have a '--version' option.

Perhaps there is a different way to check that dirname exists?

If I remove that 'validate' section of code, the script then works.

seanm avatar Feb 22 '18 23:02 seanm

@seanm A better option may be the type built-in from bash:

https://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script

thewtex avatar Feb 23 '18 00:02 thewtex

On my Mac:

leprechaun:Desktop sean$ type dirname
dirname is /usr/bin/dirname

seanm avatar Feb 23 '18 00:02 seanm