Merge pull request #737 from huerlisi/improve-upgrade-steps

Add 'cd -' to proposed steps to upgrade ruby-build
This commit is contained in:
Mislav Marohnić 2015-04-14 05:05:25 +02:00
commit e9567fc8b4
2 changed files with 2 additions and 2 deletions

View file

@ -211,7 +211,7 @@ if [ "$STATUS" == "2" ]; then
echo " brew update && brew upgrade ruby-build" echo " brew update && brew upgrade ruby-build"
elif [ -d "${here}/.git" ]; then elif [ -d "${here}/.git" ]; then
printf ":\n\n" printf ":\n\n"
echo " cd ${here} && git pull" echo " cd ${here} && git pull && cd -"
else else
printf ".\n" printf ".\n"
fi fi

View file

@ -69,7 +69,7 @@ See all available versions with \`rbenv install --list'.
If the version you need is missing, try upgrading ruby-build: If the version you need is missing, try upgrading ruby-build:
cd ${BATS_TEST_DIRNAME}/.. && git pull cd ${BATS_TEST_DIRNAME}/.. && git pull && cd -
OUT OUT
unstub ruby-build unstub ruby-build