mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-22 15:26:04 +02:00
Update 99-run.sh
This commit is contained in:
@@ -70,8 +70,12 @@ if [ -f /data/"$BASENAME"/"$f"/updater.json ]; then
|
|||||||
HAVINGASSET=$(jq -r .github_havingasset updater.json)
|
HAVINGASSET=$(jq -r .github_havingasset updater.json)
|
||||||
SOURCE=$(jq -r .source updater.json)
|
SOURCE=$(jq -r .source updater.json)
|
||||||
FILTER_TEXT=$(jq -r .github_tagfilter updater.json)
|
FILTER_TEXT=$(jq -r .github_tagfilter updater.json)
|
||||||
|
PAUSED=$(jq -r .paused updater.json)
|
||||||
DATE="$(date '+%d-%m-%Y')"
|
DATE="$(date '+%d-%m-%Y')"
|
||||||
|
|
||||||
|
#Skip if paused
|
||||||
|
if [[ "$PAUSED" = true ]]; then bashio::log.error "$SLUG addon updates are paused, skipping"; continue; fi
|
||||||
|
|
||||||
#Find current version
|
#Find current version
|
||||||
LOGINFO="... $SLUG : get current version" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
LOGINFO="... $SLUG : get current version" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
||||||
CURRENT=$(jq .upstream_version updater.json) || { bashio::log.error "$SLUG addon upstream tag not found in updater.json. Exiting."; continue; }
|
CURRENT=$(jq .upstream_version updater.json) || { bashio::log.error "$SLUG addon upstream tag not found in updater.json. Exiting."; continue; }
|
||||||
|
|||||||
Reference in New Issue
Block a user