keep installation silent

This commit is contained in:
spacewander 2015-06-07 20:57:39 +08:00
parent f754d38f30
commit 84c2d1014b
2 changed files with 4 additions and 3 deletions

View file

@ -24,5 +24,5 @@ $ [sudo] make install
One-liner:
```bash
$ (cd /tmp && git clone https://github.com/tj/git-extras.git && cd git-extras && git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) && sudo make install)
$ (cd /tmp && rm -rf git-extras && echo "Setting up 'git-extras'...." && git clone https://github.com/tj/git-extras.git &> /dev/null && cd git-extras && git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) &> /dev/null && sudo make install)
```

View file

@ -9,9 +9,10 @@ update() {
cd /tmp \
&& rm -fr ./git-extras \
&& git clone https://github.com/tj/git-extras.git \
&& echo "Setting up 'git-exras'...." \
&& git clone https://github.com/tj/git-extras.git &> /dev/null \
&& cd git-extras \
&& git checkout $(git describe --tags $(git rev-list --tags --max-count=1))\
&& git checkout $(git describe --tags $(git rev-list --tags --max-count=1)) &> /dev/null \
&& PREFIX="$prefix" make install \
&& cd "$orig" \
&& echo "... updated git-extras $VERSION -> $(git extras --version)"