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

View file

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

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