From 2fd806d3db71ba3b9d9b630274ecc4c854cad833 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 16 Dec 2016 18:38:31 -0500 Subject: [PATCH] vcs/git/install: refactor + don't reinstall|confirm --- vcs/git/install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vcs/git/install b/vcs/git/install index b44fb1d2..424cc123 100755 --- a/vcs/git/install +++ b/vcs/git/install @@ -7,10 +7,10 @@ case "$OSTYPE" in brew install git hub ;; linux*) - if [ -f /etc/arch-release ]; then - sudo pacman --noconfirm -S git hub - elif [ -f /etc/debian-version ]; then - sudo apt-get -y install git + if [[ -f /etc/arch-release ]]; then + sudo pacman --needed --noconfirm -S git hub + elif [[ -f /etc/debian-version ]]; then + sudo apt-get install -y git mkdir -p $HOME/builds && cd $HOME/builds git clone https://github.com/github/hub.git && cd hub make install prefix=/usr/local