vcs/git/install: refactor + don't reinstall|confirm
This commit is contained in:
parent
f1b0439715
commit
2fd806d3db
|
@ -7,10 +7,10 @@ case "$OSTYPE" in
|
||||||
brew install git hub
|
brew install git hub
|
||||||
;;
|
;;
|
||||||
linux*)
|
linux*)
|
||||||
if [ -f /etc/arch-release ]; then
|
if [[ -f /etc/arch-release ]]; then
|
||||||
sudo pacman --noconfirm -S git hub
|
sudo pacman --needed --noconfirm -S git hub
|
||||||
elif [ -f /etc/debian-version ]; then
|
elif [[ -f /etc/debian-version ]]; then
|
||||||
sudo apt-get -y install git
|
sudo apt-get install -y git
|
||||||
mkdir -p $HOME/builds && cd $HOME/builds
|
mkdir -p $HOME/builds && cd $HOME/builds
|
||||||
git clone https://github.com/github/hub.git && cd hub
|
git clone https://github.com/github/hub.git && cd hub
|
||||||
make install prefix=/usr/local
|
make install prefix=/usr/local
|
||||||
|
|
Loading…
Reference in a new issue