chore(): update deploy scripts

This commit is contained in:
Andrew
2014-08-06 12:48:11 -06:00
parent f2de061a08
commit 1c27df3925
7 changed files with 11 additions and 4 deletions

View File

@@ -13,9 +13,11 @@ function run {
echo "-- Cloning $REPOSITORY#$BRANCH to $DIRECTORY..."
git clone https://driftyco:$GH_TOKEN@github.com/$REPOSITORY $DIRECTORY \
--depth=${DEPTH:-1} \
--branch=${BRANCH:-master}
ARGS="--branch=${BRANCH:-master}"
if [[ "$DEPTH" != "" ]]; then
ARGS="$ARGS --depth=$DEPTH"
fi
git clone https://driftyco:$GH_TOKEN@github.com/$REPOSITORY $DIRECTORY $ARGS
}
source $(dirname $0)/../utils.inc