mac: Use bash from user env path

This patch series is to enable running the unit test framework on a
macintosh computer.

By default, mac comes with a /bin/bash version of 3.2. This version
does not have some of the required features needed by the
build-unit-test-docker.sh script (specifically the list of packages with
PKG_REV). The workaround is to install a newer version of bash in
/usr/local/bin/ and set that ahead in a users PATH.

Recent mac os updates prevent even root from being able to change files
in /bin/ so moving the bash from /usr/local/bin is not an option here.

On Linux, the -xe can not be passed in via /usr/bin/env so set these
within the script.

Tested:
Verified PKG_REV worked on a mac after this change

Change-Id: I18c14b1abfb373f939fd57e38953dfd7e3c5513c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
1 file changed