mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-24 23:10:32 +02:00
Update 99-run.sh
This commit is contained in:
@@ -199,11 +199,9 @@ for f in */; do
|
|||||||
LOGINFO="... $SLUG : beta is off" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
LOGINFO="... $SLUG : beta is off" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
#Execute version search
|
|
||||||
# shellcheck disable=SC2086
|
|
||||||
LASTVERSION="$(lastversion "$UPSTREAM" $ARGUMENTS 2>&1)" || \
|
|
||||||
# If failure, checks if there is packages that could be used
|
# If failure, checks if there is packages that could be used
|
||||||
{ if [[ "$SOURCE" == "github" ]] && [[ ${LASTVERSION,,} == *"no release found"* ]]; then
|
function test_packages () {
|
||||||
|
if [[ "$SOURCE" == "github" ]] && [[ ${LASTVERSION,,} == *"no release found"* ]]; then
|
||||||
# Is there a package
|
# Is there a package
|
||||||
echo "No version found, looking if packages available"
|
echo "No version found, looking if packages available"
|
||||||
last_packages="$(curl -s https://github.com/$REPOSITORY/packages | sed -n "s/.*\/container\/package\/\([^\"]*\).*/\1/p")" || true
|
last_packages="$(curl -s https://github.com/$REPOSITORY/packages | sed -n "s/.*\/container\/package\/\([^\"]*\).*/\1/p")" || true
|
||||||
@@ -232,6 +230,11 @@ for f in */; do
|
|||||||
# Continue to next
|
# Continue to next
|
||||||
continue
|
continue
|
||||||
fi }
|
fi }
|
||||||
|
|
||||||
|
#Execute version search
|
||||||
|
# shellcheck disable=SC2086
|
||||||
|
LASTVERSION="$(lastversion "$UPSTREAM" $ARGUMENTS 2>&1 || test_packages)"
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add brackets
|
# Add brackets
|
||||||
|
|||||||
Reference in New Issue
Block a user