Browscap fixes
gitea/hedera-web/master This commit looks good
Details
gitea/hedera-web/master This commit looks good
Details
This commit is contained in:
parent
5fa047214a
commit
d91a40de3e
|
@ -1,4 +1,4 @@
|
||||||
hedera-web (1.406.97) stable; urgency=low
|
hedera-web (1.406.98) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hedera-web",
|
"name": "hedera-web",
|
||||||
"version": "1.406.97",
|
"version": "1.406.98",
|
||||||
"description": "Verdnatura web page",
|
"description": "Verdnatura web page",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -9,11 +9,11 @@ if [ -f "$versionFile" ]; then
|
||||||
currentVersion=$(cat "$phpCfgDir/browscap.version")
|
currentVersion=$(cat "$phpCfgDir/browscap.version")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
lastVersion=$(wget --quiet -O - http://browscap.org/version-number)
|
lastVersion=$(curl -s http://browscap.org/version-number)
|
||||||
|
|
||||||
if [ "$lastVersion" -gt "$currentVersion" ] || [ ! -f "$browscapFile" ]; then
|
if [ "$lastVersion" -gt "$currentVersion" ] || [ ! -f "$browscapFile" ]; then
|
||||||
echo -n "$lastVersion" > "$versionFile"
|
echo -n "$lastVersion" > "$versionFile"
|
||||||
wget --quiet -O "$browscapFile" https://browscap.org/stream?q=Lite_PHP_BrowsCapINI
|
curl -s -o "$browscapFile" https://browscap.org/stream?q=Lite_PHP_BrowsCapINI
|
||||||
echo "Browscap updated."
|
echo "Browscap updated."
|
||||||
else
|
else
|
||||||
echo "Browscap up to date."
|
echo "Browscap up to date."
|
||||||
|
|
Loading…
Reference in New Issue