mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-15 17:08:19 +01:00
Streamline code
This commit is contained in:
@@ -131,13 +131,14 @@ if [ -f /data/"$BASENAME"/"$f"/updater.json ]; then
|
||||
#If beta flag, select beta version
|
||||
if [ "${BETA}" = true ]; then
|
||||
LOGINFO="... $SLUG : beta is on" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
||||
# shellcheck disable=SC2086
|
||||
LASTVERSION=$(lastversion --pre "$UPSTREAM" $ARGUMENTS) || continue
|
||||
ARGUMENTS="$ARGUMENTS --pre"
|
||||
else
|
||||
LOGINFO="... $SLUG : beta is off" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi
|
||||
# shellcheck disable=SC2086
|
||||
LASTVERSION=$(lastversion "$UPSTREAM" $ARGUMENTS) || continue
|
||||
fi
|
||||
|
||||
#Execute version search
|
||||
# shellcheck disable=SC2086
|
||||
LASTVERSION=$(lastversion "$UPSTREAM" $ARGUMENTS) || continue
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user