From 84c2d1014bf50adeb20d237b4cea284d11037e38 Mon Sep 17 00:00:00 2001 From: spacewander Date: Sun, 7 Jun 2015 20:57:39 +0800 Subject: [PATCH] keep installation silent --- Installation.md | 2 +- bin/git-extras | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Installation.md b/Installation.md index cc5ce6e..1a240f7 100644 --- a/Installation.md +++ b/Installation.md @@ -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) ``` diff --git a/bin/git-extras b/bin/git-extras index cfbd945..5232fd0 100755 --- a/bin/git-extras +++ b/bin/git-extras @@ -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)"