2016-10-19 07:56:37 -07:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
command -v git >/dev/null && command -v hub >/dev/null && exit
|
|
|
|
|
|
|
|
case "$OSTYPE" in
|
|
|
|
darwin*)
|
|
|
|
brew install git hub
|
|
|
|
;;
|
|
|
|
linux*)
|
2016-12-16 15:38:31 -08:00
|
|
|
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
|
2016-10-19 07:56:37 -07:00
|
|
|
mkdir -p $HOME/builds && cd $HOME/builds
|
|
|
|
git clone https://github.com/github/hub.git && cd hub
|
|
|
|
make install prefix=/usr/local
|
|
|
|
fi
|
|
|
|
esac
|