There are a couple of cases in the make-macosx-ub.sh script where an unrecoverable error does not cause the script to exit, or does not exit as promptly as it could, causing misleading, redundant, or useless error messages to be printed.
The patch I am about to attach addresses these issues, and also adds some attempt to change to the right directory before execution.
I realise it's usually more convenient to open separate bugs for arguably separate issues, but theses issues are so small individually I felt it wasn't worth it.
Created attachment 1809 [details] make-macosx-ub.sh improvements