From 7a03405bb01921b5f3488ac51ee90d8596677513 Mon Sep 17 00:00:00 2001 From: Chad Weider Date: Sun, 5 Feb 2012 13:27:27 -0800 Subject: [PATCH] Fix version check for jQuery 1.7.1 download. This corrects 3d108d6dceaac78e2e8395620d80b10f88b766d5, which caused jQuery's version to mismatch and installDeps to download a new version every run. --- bin/installDeps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/installDeps.sh b/bin/installDeps.sh index 2a505f826..b11c09ac5 100755 --- a/bin/installDeps.sh +++ b/bin/installDeps.sh @@ -56,7 +56,7 @@ echo "Ensure jQuery is downloaded and up to date..." DOWNLOAD_JQUERY="true" NEEDED_VERSION="1.7.1" if [ -f "static/js/jquery.js" ]; then - VERSION=$(cat static/js/jquery.js | head -n 3 | grep -o "v[0-9].[0-9]"); + VERSION=$(cat static/js/jquery.js | head -n 3 | grep -o "v[0-9].[0-9].[0-9]"); if [ ${VERSION#v} = $NEEDED_VERSION ]; then DOWNLOAD_JQUERY="false"