jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/331798 )
Change subject: Warn before deleting a bunch of local files ...................................................................... Warn before deleting a bunch of local files Change-Id: Id52e71088417b0fb6e47393c7531310ef7fce963 --- M bin/sync-gh-pages.sh 1 file changed, 7 insertions(+), 0 deletions(-) Approvals: jenkins-bot: Verified Jforrester: Looks good to me, approved diff --git a/bin/sync-gh-pages.sh b/bin/sync-gh-pages.sh index b9098ed..371235f 100755 --- a/bin/sync-gh-pages.sh +++ b/bin/sync-gh-pages.sh @@ -2,6 +2,13 @@ # This script builds a new gh-pages branch from latest master +read -p "This script will delete all untracked files in the VE folder. Continue (y/n)? " -n 1 -r +echo +if [[ ! $REPLY =~ ^[Yy]$ ]] +then + exit 0 +fi + cd "$(dirname $0)/.." git fetch origin git checkout -B gh-pages origin/master -- To view, visit https://gerrit.wikimedia.org/r/331798 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: Id52e71088417b0fb6e47393c7531310ef7fce963 Gerrit-PatchSet: 1 Gerrit-Project: VisualEditor/VisualEditor Gerrit-Branch: master Gerrit-Owner: Esanders <esand...@wikimedia.org> Gerrit-Reviewer: Jforrester <jforres...@wikimedia.org> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits