We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
@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:
@seanm A better option may be the type built-in from bash:
type
https://stackoverflow.com/questions/592620/check-if-a-program-exists-from-a-bash-script
Sorry, something went wrong.
On my Mac:
leprechaun:Desktop sean$ type dirname dirname is /usr/bin/dirname
Use POSIX standard technique for testing existance of a command
dfe7858
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
4e78ffa
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
No branches or pull requests
@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: