-
Notifications
You must be signed in to change notification settings - Fork 30
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
Comments
@seanm A better option may be the https://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script |
On my Mac:
|
seanm
added a commit
to seanm/KWStyle
that referenced
this issue
Aug 26, 2024
Fixes issue Kitware#73. macOS dirname does not have a `--version` option, which was making the script fail on macOS. This technique should be POSIX compliant and more crossplatform. Solution taken from: https://stackoverflow.com/questions/592620/how-can-i-check-if-a-program-exists-from-a-bash-script
dzenanz
pushed a commit
that referenced
this issue
Aug 27, 2024
Fixes issue #73. macOS dirname does not have a `--version` option, which was making the script fail on macOS. This technique should be POSIX compliant and more crossplatform. Solution taken from: https://stackoverflow.com/questions/592620/how-can-i-check-if-a-program-exists-from-a-bash-script
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@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.
The text was updated successfully, but these errors were encountered: