Avoid incompatible characters in version name

This commit is contained in:
Alexandre
2024-01-11 09:19:17 +01:00
committed by GitHub
parent d5ce19b657
commit a6a7dbbd0b

View File

@@ -207,11 +207,9 @@ for f in */; do
# Add brackets # Add brackets
LASTVERSION='"'${LASTVERSION}'"' LASTVERSION='"'${LASTVERSION}'"'
# Do not compare with ls tag for linuxserver images (to avoid updating only for dependencies) # Avoid characters incompatible with HomeAssistant version name
#LASTVERSION2=${LASTVERSION%-ls*} LASTVERSION2=${LASTVERSION//+/-}
#CURRENT2=${CURRENT%-ls*} CURRENT2=${CURRENT//+/-}
LASTVERSION2=${LASTVERSION}
CURRENT2=${CURRENT}
# Update if needed # Update if needed
if [ "${CURRENT2}" != "${LASTVERSION2}" ]; then if [ "${CURRENT2}" != "${LASTVERSION2}" ]; then