From c22747fa2e1e74bd9c75d6d0461e4223297d37c7 Mon Sep 17 00:00:00 2001 From: Ibby Date: Thu, 27 Oct 2016 19:18:29 -0400 Subject: [PATCH] chore(): go to SITE_DIR if checking out --- scripts/docs/prepare.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/docs/prepare.sh b/scripts/docs/prepare.sh index f41d4e097..ee1dd0f95 100755 --- a/scripts/docs/prepare.sh +++ b/scripts/docs/prepare.sh @@ -21,16 +21,17 @@ function run { ./git/clone.sh --repository="ionic-site" \ --directory="$SITE_DIR" \ --branch="master" - ls -al $SITE_DIR + cd $SITE_DIR + ls -al else echo "using existing" cd $SITE_DIR git reset --hard git pull origin master fi - + git rm -rf docs/v2/native/*/ - + } source $(dirname $0)/../utils.inc.sh