mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-09-05 16:51:17 +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
|
$ brew update && brew upgrade ruby-build
|
||||||
|
|
||||||
# As an rbenv plugin
|
# As an rbenv plugin
|
||||||
$ cd "$(rbenv root)"/plugins/ruby-build && git pull
|
$ git -C "$(rbenv root)"/plugins/ruby-build pull
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
|
@ -214,7 +214,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 && cd -"
|
echo " git -C ${here} pull"
|
||||||
else
|
else
|
||||||
printf ".\n"
|
printf ".\n"
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -68,7 +68,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 -
|
git -C ${BATS_TEST_DIRNAME}/.. pull
|
||||||
OUT
|
OUT
|
||||||
|
|
||||||
unstub ruby-build
|
unstub ruby-build
|
||||||
|
|
Loading…
Reference in a new issue