mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-29 20:04:05 +02:00
Github bot : script beautyshied
This commit is contained in:
@@ -75,12 +75,12 @@ for f in */; do
|
||||
BYDATE=$(jq -r .dockerhub_by_date updater.json)
|
||||
|
||||
# Number of elements to check in dockerhub
|
||||
if grep -Fxq "dockerhub_list_size" updater.json; then
|
||||
LISTSIZE=$(jq -r .dockerhub_list_size updater.json)
|
||||
if grep -Fxq "dockerhub_list_size" updater.json; then
|
||||
LISTSIZE=$(jq -r .dockerhub_list_size updater.json)
|
||||
else
|
||||
LISTSIZE=100
|
||||
LISTSIZE=100
|
||||
fi
|
||||
|
||||
|
||||
#Skip if paused
|
||||
if [[ "$PAUSED" = true ]]; then bashio::log.magenta "... $SLUG addon updates are paused, skipping"; continue; fi
|
||||
|
||||
@@ -111,7 +111,7 @@ for f in */; do
|
||||
sort -V |
|
||||
tail -n 1
|
||||
)
|
||||
|
||||
|
||||
[ "${BYDATE}" = true ] &&
|
||||
LASTVERSION=$(
|
||||
curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=$LISTSIZE" |
|
||||
@@ -122,7 +122,7 @@ for f in */; do
|
||||
sort -V |
|
||||
tail -n 1
|
||||
) && \
|
||||
DATE=$(
|
||||
DATE=$(
|
||||
curl -f -L -s --fail "https://hub.docker.com/v2/repositories/${DOCKERHUB_REPO}/${DOCKERHUB_IMAGE}/tags/?page_size=$LISTSIZE" |
|
||||
jq '.results[] | select(.name==$LASTVERSION) | .last_updated' -r --arg LASTVERSION "$LASTVERSION"
|
||||
) && \
|
||||
|
||||
Reference in New Issue
Block a user