Fix version check for jQuery 1.7.1 download.

This corrects 3d108d6dce, which caused jQuery's version to mismatch and installDeps to download a new version every run.
pull/403/head
Chad Weider 2012-02-05 13:27:27 -08:00
parent 8ade4c89d5
commit 7a03405bb0
1 changed files with 1 additions and 1 deletions

View File

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