Last active
December 23, 2015 08:59
-
-
Save dyoung522/6611091 to your computer and use it in GitHub Desktop.
Boxen configuration setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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