Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dragoonis
Last active February 23, 2017 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dragoonis/cd1d45f21121a9f70cbe2f9273689092 to your computer and use it in GitHub Desktop.
Save dragoonis/cd1d45f21121a9f70cbe2f9273689092 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
if [ ! -d $DIR/shop/.git ]; then
git clone -b ${SHOP_BRANCH} --single-branch git@bitbucket.org:kartenmacherei/shop.git $DIR/shop
else
cd $DIR/shop && git fetch && git checkout -b origin/${SHOP_BRANCH}
fi
if [ ! -d $DIR/fury/.git ]; then
git clone -b ${FURY_BRANCH} --single-branch git@bitbucket.org:kartenmacherei/fury.git $DIR/fury
else
cd $DIR/fury && git fetch && git checkout -b origin/${FURY_BRANCH}
fi
if [ ! -d $DIR/jessi/.git ]; then
git clone -b ${JESSI_BRANCH} --single-branch git@bitbucket.org:kartenmacherei/jessi.git $DIR/jessi
else
cd $DIR/jessi && git fetch && git checkout -b origin/${JESSI_BRANCH}
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment