Fix jquery version test: #234

pull/239/head
Micah Anderson 2011-11-26 00:58:47 -05:00
parent 97e9eb84af
commit 28c5e3ffb1
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ echo "Ensure jQuery is downloaded and up to date..."
DOWNLOAD_JQUERY="true"
NEEDED_VERSION="1.7"
if [ -f "static/js/jquery.min.js" ]; then
VERSION=$(cat static/js/jquery.min.js | head -n 1 | grep -o "v[0-9].[0-9]");
VERSION=$(cat static/js/jquery.min.js | head -n 3 | grep -o "v[0-9].[0-9]");
if [ ${VERSION#v} = $NEEDED_VERSION ]; then
DOWNLOAD_JQUERY="false"