mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-31 04:44:05 +02:00
Update run.sh
This commit is contained in:
@@ -114,11 +114,11 @@ for addons in $(bashio::config "addon|keys"); do
|
|||||||
LASTVERSION='"'${LASTVERSION}'"'
|
LASTVERSION='"'${LASTVERSION}'"'
|
||||||
|
|
||||||
# Do not compare with ls tag for linuxserver images (to avoid updating only for dependencies)
|
# Do not compare with ls tag for linuxserver images (to avoid updating only for dependencies)
|
||||||
LASTVERSION=${LASTVERSION%-ls*}
|
LASTVERSION2=${LASTVERSION%-ls*}
|
||||||
CURRENT=${CURRENT%-ls*}
|
CURRENT2=${CURRENT%-ls*}
|
||||||
|
|
||||||
# Update if needed
|
# 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
|
LOGINFO="... $SLUG : update from ${CURRENT} to ${LASTVERSION}" && if [ $VERBOSE = true ]; then bashio::log.info $LOGINFO; fi
|
||||||
|
|
||||||
#Change all instances of version
|
#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}"
|
bashio::log.warning "$SLUG updated from ${CURRENT} to ${LASTVERSION}"
|
||||||
|
|
||||||
else
|
else
|
||||||
bashio::log.info "$SLUG is already up-to-date"
|
bashio::log.info "$SLUG is up-to-date (${CURRENT})"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user