From 6dfa9f03491e5ec6bc6842ca390149f43131740b Mon Sep 17 00:00:00 2001 From: Frank Kumro Jr Date: Fri, 11 Jun 2021 21:18:39 -0400 Subject: [PATCH] Appends kerl config options to existing env. variable if set. If the KERL_CONFIGURE_OPTIONS environment variable is set, options added by `scripts/bootstrap` will be appended instead of being destructive. This allows developers to have options configured within their environment respected. --- script/bootstrap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/bootstrap b/script/bootstrap index 355d748f..b8d5a918 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -6,10 +6,10 @@ set -e if ! brew -v &> /dev/null then echo "WARNING: Cannot find brew. Skipping brewfile installation." - export KERL_CONFIGURE_OPTIONS="--disable-hipe" + export KERL_CONFIGURE_OPTIONS="$KERL_CONFIGURE_OPTIONS --disable-hipe" else brew bundle - export KERL_CONFIGURE_OPTIONS="--disable-hipe --with-ssl=$(brew --prefix openssl)" + export KERL_CONFIGURE_OPTIONS="$KERL_CONFIGURE_OPTIONS --disable-hipe --with-ssl=$(brew --prefix openssl)" fi if ! which asdf &> /dev/null