1
0
mirror of https://github.com/twitter/twemoji.git synced 2024-10-01 12:24:23 +00:00

Remove versioned folder if already exists during deploy

This commit is contained in:
Alan Velasco 2019-06-25 20:46:51 -07:00
parent ae47fd9840
commit d6a0078911

View File

@ -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