diff --git a/addons_updater/rootfs/etc/cont-init.d/99-run.sh b/addons_updater/rootfs/etc/cont-init.d/99-run.sh index 66d6389fe..87a8b52ea 100644 --- a/addons_updater/rootfs/etc/cont-init.d/99-run.sh +++ b/addons_updater/rootfs/etc/cont-init.d/99-run.sh @@ -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