helm/vcs/git/install
2016-10-19 16:56:37 +02:00

19 lines
513 B
Bash
Executable file

#!/bin/bash
command -v git >/dev/null && command -v hub >/dev/null && exit
case "$OSTYPE" in
darwin*)
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
mkdir -p $HOME/builds && cd $HOME/builds
git clone https://github.com/github/hub.git && cd hub
make install prefix=/usr/local
fi
esac