Skip to content
Browse files

Have user confirm that he/she wants to update

  • Loading branch information...
1 parent 76193d7 commit dd6a1add2d83f54c79c82828cfef5cb7925f3f3d @traviskaufman traviskaufman committed Jul 15, 2012
Showing with 12 additions and 0 deletions.
  1. +12 −0 build/update_requirejs.sh
View
12 build/update_requirejs.sh
@@ -22,6 +22,18 @@ if [[ $RJS_VERSION = $BASE_RJS_VERSION ]] ; then
exit 0
fi
+echo "You're about to upgrade requireJS from version $BASE_RJS_VERSION to $RJS_VERSION."
+echo -n "Would you like to continue? [y/N]: "
+
+read CONFIRM
+if [[ "$CONFIRM" = "N" ]] ; then
+ echo "Update aborted"
+ exit 2
+elif [[ "$CONFIRM" != "y" ]] ; then
+ echo "Unrecognized response"
+ exit 3
+fi
+
echo "Fetching requireJS v$RJS_VERSION"
REQUIRE_PATH=`dirname $PWD`/js/libs/require
# If, for some reason, curl fails, we'll still have our old copy of require

0 comments on commit dd6a1ad

Please sign in to comment.
Something went wrong with that request. Please try again.