From d6a00789110826d13a73bcf02b5b0f208c87b521 Mon Sep 17 00:00:00 2001 From: Alan Velasco Date: Tue, 25 Jun 2019 20:46:51 -0700 Subject: [PATCH] Remove versioned folder if already exists during deploy --- scripts/deploy.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 3d9bf263..9dbb000a 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -12,6 +12,9 @@ git fetch --all git add -f $OUT git checkout $PUBLISH_BRANCH git pull origin $PUBLISH_BRANCH +if [ -d $VERSION ]; then + rm -r $VERSION +if git mv -f $OUT $VERSION git commit -q -m "Update the Twemoji project and push to $PUBLISH_BRANCH" git push origin $PUBLISH_BRANCH