From f2a88762fed039c8e4b92869d48000de01f4a0e3 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Tue, 26 Apr 2022 20:06:47 +0200 Subject: [PATCH] Update 99-run.sh --- addons_updater/rootfs/etc/cont-init.d/99-run.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 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 aacf2ad06..545ccda27 100644 --- a/addons_updater/rootfs/etc/cont-init.d/99-run.sh +++ b/addons_updater/rootfs/etc/cont-init.d/99-run.sh @@ -31,8 +31,8 @@ fi LOGINFO="... parse addons" && if [ "$VERBOSE" = true ]; then bashio::log.info "$LOGINFO"; fi # Go through all folders, add to filters if not existing -for f in $( find -- /data/* -maxdepth 0 -type d | sort -r ); do -if [ -f "$f"/updater.json ]; then +cd /data/hassio-addons +for f in $( dirname "$(find -- */updater.json -maxdepth 0 -type d | sort -r )" ); do SLUG=$f REPOSITORY=$(jq -r .repository /data/"$f"/updater.json) UPSTREAM=$(jq -r .upstream /data/"$f"/updater.json) @@ -176,7 +176,6 @@ if [ -f "$f"/updater.json ]; then else bashio::log.green "... $SLUG is up-to-date ${CURRENT}" fi -fi done || true # Continue even if issue bashio::log.info "Addons update completed"