Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
seanm opened this issue Feb 22, 2018 · 2 comments

Comments

@seanm
Copy link
Contributor

seanm commented Feb 22, 2018

@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.

@thewtex
Copy link
Member

thewtex commented Feb 23, 2018

@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

@seanm
Copy link
Contributor Author

seanm commented Feb 23, 2018

On my Mac:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants