From 24399c578bf288c24ac9fbca174f4479e4a4a97a Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Thu, 20 May 2021 15:59:43 +0200 Subject: [PATCH] Update run.sh --- addons_updater/run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/addons_updater/run.sh b/addons_updater/run.sh index a685473e0..8020bc7ce 100644 --- a/addons_updater/run.sh +++ b/addons_updater/run.sh @@ -114,11 +114,11 @@ for addons in $(bashio::config "addon|keys"); do LASTVERSION='"'${LASTVERSION}'"' # Do not compare with ls tag for linuxserver images (to avoid updating only for dependencies) - LASTVERSION=${LASTVERSION%-ls*} - CURRENT=${CURRENT%-ls*} + LASTVERSION2=${LASTVERSION%-ls*} + CURRENT2=${CURRENT%-ls*} # Update if needed - if [ ${CURRENT} != ${LASTVERSION} ]; then + if [ ${CURRENT2} != ${LASTVERSION2} ]; then LOGINFO="... $SLUG : update from ${CURRENT} to ${LASTVERSION}" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi #Change all instances of version @@ -152,6 +152,6 @@ for addons in $(bashio::config "addon|keys"); do bashio::log.warning "$SLUG updated from ${CURRENT} to ${LASTVERSION}" else - bashio::log.info "$SLUG is already up-to-date" + bashio::log.info "$SLUG is up-to-date (${CURRENT})" fi done