diff options
author | Bradley Sepos <[email protected]> | 2017-12-27 13:40:07 -0500 |
---|---|---|
committer | Bradley Sepos <[email protected]> | 2017-12-27 13:40:52 -0500 |
commit | 0a049afced0407b65bc8e8d348fcb3be2ae8b5c5 (patch) | |
tree | 85edc93f2109d70a39cffba71effc6721b54063e /scripts/mac-toolchain-build | |
parent | c53403c3ff6b1551af0fdcf933fbb2cb4d62ba8c (diff) |
scripts: Export prefix bin path while building Mac deps.
Fixes #1075.
Diffstat (limited to 'scripts/mac-toolchain-build')
-rwxr-xr-x | scripts/mac-toolchain-build | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/mac-toolchain-build b/scripts/mac-toolchain-build index b175b61c1..6bed4e861 100755 --- a/scripts/mac-toolchain-build +++ b/scripts/mac-toolchain-build @@ -38,6 +38,8 @@ if [[ ! -w "${PREFIX}" ]]; then fi fi PREFIX=$(cd "${PREFIX}" && pwd -P) +PATH_ORIG="${PATH}" +export PATH="${PREFIX}/bin${PATH:+:$PATH}" # temp dir TEMP_DIR=$(mktemp -d "${TMPDIR:-/tmp/}toolchain-XXXXXX") @@ -142,4 +144,8 @@ if [[ "${PREFIX}" != "/usr/local" ]]; then echo " add to your shell startup script (${HOME}/.bash_profile):" echo " export PATH=\"${PREFIX}/bin:\${PATH}\"" fi + +# restore original PATH +PATH="${PATH_ORIG}" + exit 0 |