fixes automatic update

pull/398/head
Robin 2012-02-04 18:46:43 +01:00
parent eb24404d3d
commit dd9989c32a
2 changed files with 4 additions and 3 deletions

3
.gitignore vendored
View File

@ -1,6 +1,7 @@
node_modules node_modules
settings.json settings.json
static/js/jquery.js static/js/jquery.js
static/js/prefixfree.js
APIKEY.txt APIKEY.txt
bin/abiword.exe bin/abiword.exe
bin/node.exe bin/node.exe
@ -8,4 +9,4 @@ etherpad-lite-win.zip
var/dirty.db var/dirty.db
bin/convertSettings.json bin/convertSettings.json
*~ *~
*.patch *.patch

View File

@ -73,13 +73,13 @@ NEEDED_VERSION="1.0.4"
if [ -f "static/js/prefixfree.js" ]; then if [ -f "static/js/prefixfree.js" ]; then
VERSION=$(cat static/js/prefixfree.js | grep "PrefixFree" | grep -o "[0-9].[0-9].[0-9]"); VERSION=$(cat static/js/prefixfree.js | grep "PrefixFree" | grep -o "[0-9].[0-9].[0-9]");
if [ ${VERSION#v} = $NEEDED_VERSION ]; then if [ $VERSION = $NEEDED_VERSION ]; then
DOWNLOAD_PREFIXFREE="false" DOWNLOAD_PREFIXFREE="false"
fi fi
fi fi
if [ $DOWNLOAD_PREFIXFREE = "true" ]; then if [ $DOWNLOAD_PREFIXFREE = "true" ]; then
curl -lo static/js/prefixfree.js https://raw.github.com/LeaVerou/prefixfree/master/prefixfree.min.js || exit 1 curl -lo static/js/prefixfree.js https://raw.github.com/LeaVerou/prefixfree/master/prefixfree.js || exit 1
fi fi
#Remove all minified data to force node creating it new #Remove all minified data to force node creating it new