Skip to content

Commit

Permalink
Avoid incompatible characters in version name
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Jan 11, 2024
1 parent d5ce19b commit a6a7dbb
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions addons_updater/rootfs/etc/cont-init.d/99-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,9 @@ for f in */; do
# Add brackets
LASTVERSION='"'${LASTVERSION}'"'

# Do not compare with ls tag for linuxserver images (to avoid updating only for dependencies)
#LASTVERSION2=${LASTVERSION%-ls*}
#CURRENT2=${CURRENT%-ls*}
LASTVERSION2=${LASTVERSION}
CURRENT2=${CURRENT}
# Avoid characters incompatible with HomeAssistant version name
LASTVERSION2=${LASTVERSION//+/-}
CURRENT2=${CURRENT//+/-}

# Update if needed
if [ "${CURRENT2}" != "${LASTVERSION2}" ]; then
Expand Down

0 comments on commit a6a7dbb

Please sign in to comment.