Sha256: 25884b77d6c2cce2a3be1e3db75d2c187f9c339e23f4e849544f84aa3934632f
Contents?: true
Size: 571 Bytes
Versions: 4
Compression:
Stored size: 571 Bytes
Contents
#!/usr/bin/env bash if [[ $EUID -ne 0 ]]; then echo "ERROR: This script must be run as root" 1>&2 exit 1 fi set -e # exit immediately if a simple command exits with a non-zero status cd /var/vcap/store/repos if [[ ! -d hub ]]; then git clone git://github.com/defunkt/hub.git cd hub else cd hub git pull origin master fi rake install prefix=/usr/local chown -R vcap:vcap /var/vcap/store/repos/hub if [[ $(grep "hub alias -s" /home/vcap/.bashrc) == "" ]]; then echo 'adding hub alias to .bashrc' echo 'eval "$(hub alias -s)"' >> /home/vcap/.bashrc fi
Version data entries
4 entries across 4 versions & 1 rubygems