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