Files
ionic-framework/scripts/clone/clone.sh
2014-06-03 15:23:00 -06:00

23 lines
395 B
Bash
Executable File

#!/bin/bash
ARG_DEFS=(
"--repository=(.*)"
"--directory=(.*)"
"[--depth=(.*)]"
"[--branch=(.*)]"
)
function run {
rm -rf $DIRECTORY
mkdir -p $DIRECTORY
echo "-- Cloning $REPOSITORY#$BRANCH to $DIRECTORY..."
git clone https://driftyco:$GH_TOKEN@github.com/$REPOSITORY $DIRECTORY \
--depth=${DEPTH:-1} \
--branch=${BRANCH:-master}
}
source $(dirname $0)/../utils.inc