Streamline code

This commit is contained in:
Alexandre
2022-04-28 08:49:04 +02:00
committed by GitHub
parent 1be1a2389f
commit 94d8dc5135

View File

@@ -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