fixes automatic update
parent
eb24404d3d
commit
dd9989c32a
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue