From 2d489e7742afcc00b450e7e25253d79f8a7cd0f4 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Thu, 24 May 2012 13:51:30 -0500 Subject: [PATCH] Avoid += for compatibility with older bash versions --- bin/rbenv-install | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/rbenv-install b/bin/rbenv-install index d73c8ec354..35496be082 100755 --- a/bin/rbenv-install +++ b/bin/rbenv-install @@ -25,7 +25,7 @@ case "$DEFINITION" in ;; "-k" | "--keep" ) [ -z "${RBENV_BUILD_ROOT}" ] && RBENV_BUILD_ROOT="${RBENV_ROOT}/sources" - RUBY_BUILD_OPTIONS+=" -k" + RUBY_BUILD_OPTIONS="${RUBY_BUILD_OPTIONS} -k" ;; esac @@ -35,7 +35,7 @@ PREFIX="${RBENV_ROOT}/versions/${VERSION_NAME}" # If RBENV_BUILD_ROOT is set, then always pass keep options to ruby-build if [ -n "${RBENV_BUILD_ROOT}" ]; then export RUBY_BUILD_BUILD_PATH="${RBENV_BUILD_ROOT}/${VERSION_NAME}" - RUBY_BUILD_OPTIONS+=" -k" + RUBY_BUILD_OPTIONS="${RUBY_BUILD_OPTIONS} -k" fi ruby-build "$DEFINITION" "$PREFIX" "$RUBY_BUILD_OPTIONS"