Skip to content

Instantly share code, notes, and snippets.

@dyoung522
Last active December 23, 2015 08:59
Show Gist options
  • Save dyoung522/6611091 to your computer and use it in GitHub Desktop.
Save dyoung522/6611091 to your computer and use it in GitHub Desktop.
Boxen configuration setup
#!/bin/sh
fail() {
echo "Whoops... $*"
exit 1
}
if [ ! -d /opt/boxen ] ; then
sudo mkdir -p /opt/boxen && sudo chown ${USER}:staff /opt/boxen
fi || fail "could not create /opt/boxen"
if [ ! -d /opt/boxen/repo ] ; then
git clone https://github.com/dyoung522/my-boxen.git /opt/boxen/repo
fi || fail "something went wrong while trying to clone my-boxen"
cd /opt/boxen/repo && script/boxen $*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment