From aa8d1d354f133f87ee8efaab5ae5b87fa54f2bea Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 12 Jan 2024 23:00:51 +0100 Subject: [PATCH] Update 99-run.sh --- addons_updater/rootfs/etc/cont-init.d/99-run.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 14ab1cf36..a238cacff 100755 --- a/addons_updater/rootfs/etc/cont-init.d/99-run.sh +++ b/addons_updater/rootfs/etc/cont-init.d/99-run.sh @@ -207,12 +207,12 @@ for f in */; do if [[ "$SOURCE" == *"github"* ]] && [[ "$(lastversion "$UPSTREAM" $ARGUMENTS 2>&1 || true)" == *"No release"* ]]; then # Is there a package bashio::log.warning "No version found, looking if packages available" - last_packages="$(curl -s -L https://github.com/"$REPOSITORY"/packages | sed -n "s/.*\/container\/package\/\([^\"]*\).*/\1/p")" || true + last_packages="$(curl -s -L https://github.com/"$UPSTREAM"/packages | sed -n "s/.*\/container\/package\/\([^\"]*\).*/\1/p")" || true last_package="$(echo "$last_packages" | head -n 1)" || true if [[ "$(echo -n "$last_packages" | grep -c '^')" -gt 0 ]]; then bashio::log.warning "A total of $(echo -n "$last_packages" | grep -c '^') packages were found, using $last_package" LASTVERSION="" - LASTVERSION="$(curl -s -L https://github.com/"$REPOSITORY"/pkgs/container/"$last_package" | sed -n "s/.*?tag=\([^\"]*\)\">.*/\1/p" | + LASTVERSION="$(curl -s -L https://github.com/"$UPSTREAM"/pkgs/container/"$last_package" | sed -n "s/.*?tag=\([^\"]*\)\">.*/\1/p" | sed -e '/.*latest.*/d' | sed -e '/.*dev.*/d' | sed -e '/.*nightly.*/d' |