Updated JQuery to 1.7, thx to @wikinaut

pull/212/merge
Peter 'Pita' Martischka 2011-11-19 12:18:21 -08:00
parent 2f16dff0ba
commit a6b4260cc9
1 changed files with 2 additions and 2 deletions

View File

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