shorter git command chains

This commit is contained in:
eladeyal-intel 2020-01-31 17:23:02 +02:00
parent 73b926b77c
commit 1e94192659
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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

View file

@ -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