mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-09-03 07:41:23 +02:00
shorter git command chains
This commit is contained in:
parent
73b926b77c
commit
1e94192659
3 changed files with 3 additions and 3 deletions
|
@ -28,7 +28,7 @@ $ PREFIX=/usr/local ./ruby-build/install.sh
|
|||
$ brew update && brew upgrade ruby-build
|
||||
|
||||
# As an rbenv plugin
|
||||
$ cd "$(rbenv root)"/plugins/ruby-build && git pull
|
||||
$ git -C "$(rbenv root)"/plugins/ruby-build pull
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
|
|
@ -214,7 +214,7 @@ if [ "$STATUS" == "2" ]; then
|
|||
echo " brew update && brew upgrade ruby-build"
|
||||
elif [ -d "${here}/.git" ]; then
|
||||
printf ":\n\n"
|
||||
echo " cd ${here} && git pull && cd -"
|
||||
echo " git -C ${here} pull"
|
||||
else
|
||||
printf ".\n"
|
||||
fi
|
||||
|
|
|
@ -68,7 +68,7 @@ See all available versions with \`rbenv install --list'.
|
|||
|
||||
If the version you need is missing, try upgrading ruby-build:
|
||||
|
||||
cd ${BATS_TEST_DIRNAME}/.. && git pull && cd -
|
||||
git -C ${BATS_TEST_DIRNAME}/.. pull
|
||||
OUT
|
||||
|
||||
unstub ruby-build
|
||||
|
|
Loading…
Reference in a new issue