Skip to content

Commit

Permalink
Avoid += for compatibility with older bash versions
Browse files Browse the repository at this point in the history
  • Loading branch information
sstephenson committed May 24, 2012
1 parent 458d692 commit 2d489e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/rbenv-install
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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"
Expand Down

0 comments on commit 2d489e7

Please sign in to comment.