Loading bin/rbenv-install +6 −5 Original line number Diff line number Diff line Loading @@ -149,19 +149,20 @@ DEFINITION="${ARGUMENTS[0]}" # after the installation process. declare -a before_hooks after_hooks # shellcheck disable=SC2317 before_install() { local hook="$1" before_hooks["${#before_hooks[@]}"]="$hook" } # shellcheck disable=SC2317 after_install() { local hook="$1" after_hooks["${#after_hooks[@]}"]="$hook" } OLDIFS="$IFS" IFS=$'\n' scripts=(`rbenv-hooks install`) IFS="$OLDIFS" IFS=$'\n' read -d '' -r -a scripts <<<"$(rbenv-hooks install)" || true # shellcheck disable=SC1090 for script in "${scripts[@]}"; do source "$script"; done Loading @@ -177,7 +178,7 @@ PREFIX="${RBENV_ROOT}/versions/${VERSION_NAME}" if [ -d "${PREFIX}/bin" ]; then if [ -z "$FORCE" ] && [ -z "$SKIP_EXISTING" ]; then echo "rbenv: $PREFIX already exists" >&2 read -p "continue with installation? (y/N) " read -rp "continue with installation? (y/N) " case "$REPLY" in y* | Y* ) ;; Loading Loading @@ -241,7 +242,7 @@ if [ "$STATUS" == "2" ]; then echo "See all available versions with \`rbenv install --list'." echo echo -n "If the version you need is missing, try upgrading ruby-build" if [ "$here" != "${here#$(brew --prefix 2>/dev/null)}" ]; then if [ "$here" != "${here#"$(brew --prefix 2>/dev/null)"}" ]; then printf ":\n\n" echo " brew upgrade ruby-build" elif [ -d "${here}/.git" ]; then Loading bin/ruby-build +132 −77 File changed.Preview size limit exceeded, changes collapsed. Show changes Loading
bin/rbenv-install +6 −5 Original line number Diff line number Diff line Loading @@ -149,19 +149,20 @@ DEFINITION="${ARGUMENTS[0]}" # after the installation process. declare -a before_hooks after_hooks # shellcheck disable=SC2317 before_install() { local hook="$1" before_hooks["${#before_hooks[@]}"]="$hook" } # shellcheck disable=SC2317 after_install() { local hook="$1" after_hooks["${#after_hooks[@]}"]="$hook" } OLDIFS="$IFS" IFS=$'\n' scripts=(`rbenv-hooks install`) IFS="$OLDIFS" IFS=$'\n' read -d '' -r -a scripts <<<"$(rbenv-hooks install)" || true # shellcheck disable=SC1090 for script in "${scripts[@]}"; do source "$script"; done Loading @@ -177,7 +178,7 @@ PREFIX="${RBENV_ROOT}/versions/${VERSION_NAME}" if [ -d "${PREFIX}/bin" ]; then if [ -z "$FORCE" ] && [ -z "$SKIP_EXISTING" ]; then echo "rbenv: $PREFIX already exists" >&2 read -p "continue with installation? (y/N) " read -rp "continue with installation? (y/N) " case "$REPLY" in y* | Y* ) ;; Loading Loading @@ -241,7 +242,7 @@ if [ "$STATUS" == "2" ]; then echo "See all available versions with \`rbenv install --list'." echo echo -n "If the version you need is missing, try upgrading ruby-build" if [ "$here" != "${here#$(brew --prefix 2>/dev/null)}" ]; then if [ "$here" != "${here#"$(brew --prefix 2>/dev/null)"}" ]; then printf ":\n\n" echo " brew upgrade ruby-build" elif [ -d "${here}/.git" ]; then Loading