chore(): go to SITE_DIR if checking out

This commit is contained in:
Ibby 2016-10-27 19:18:29 -04:00
parent fd8f80e92b
commit c22747fa2e

View File

@ -21,16 +21,17 @@ function run {
./git/clone.sh --repository="ionic-site" \ ./git/clone.sh --repository="ionic-site" \
--directory="$SITE_DIR" \ --directory="$SITE_DIR" \
--branch="master" --branch="master"
ls -al $SITE_DIR cd $SITE_DIR
ls -al
else else
echo "using existing" echo "using existing"
cd $SITE_DIR cd $SITE_DIR
git reset --hard git reset --hard
git pull origin master git pull origin master
fi fi
git rm -rf docs/v2/native/*/ git rm -rf docs/v2/native/*/
} }
source $(dirname $0)/../utils.inc.sh source $(dirname $0)/../utils.inc.sh