chore(CI): refactoring CI scripts for security and performance

This commit is contained in:
perry
2016-05-05 14:31:02 -05:00
parent 67590745e4
commit d643915bab
4 changed files with 46 additions and 27 deletions

View File

@ -13,20 +13,6 @@ function init {
SITE_PATH=$(readJsonProp "config.json" "sitePath")
SITE_DIR=$IONIC_DIR/$SITE_PATH
DOCS_DEST=$(readJsonProp "config.json" "docsDest")
if [ ! -d "$SITE_DIR" ]; then
echo "checking out"
./git/clone.sh --repository="driftyco/ionic-site" \
--directory="$SITE_DIR" \
--branch="master" \
--depth=1
else
echo "using existing"
cd $SITE_DIR
git reset --hard
git pull origin master
cd $IONIC_DIR/scripts
fi
}
function run {