From 6a852b6a0db82cf4e0001704b3d704eab70caeb1 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 8 Jun 2026 20:15:12 +0200 Subject: [PATCH] Update ha_automatic_packages.sh --- .templates/ha_automatic_packages.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.templates/ha_automatic_packages.sh b/.templates/ha_automatic_packages.sh index b78d34953d..ad36bfa955 100755 --- a/.templates/ha_automatic_packages.sh +++ b/.templates/ha_automatic_packages.sh @@ -228,12 +228,12 @@ for files in "/etc/services.d" "/etc/cont-init.d"; do if ! ls $files 1> /dev/null 2>&1; then continue; fi # Bashio - if grep -q -rnw "$files/" -e 'bashio' && [ ! -f "/usr/bin/bashio" ]; then + if grep -q -rnw "${files}" -e 'bashio' 2>/dev/null && [ ! -f "/usr/bin/bashio" ]; then [ "$VERBOSE" = true ] && echo "install bashio" BASHIO_VERSION="v0.17.5" mkdir -p /tmp/bashio - BASHIO_TAG="$(curl -f -L -s -S "https://api.github.com/repos/hassio-addons/bashio/releases/${BASHIO_VERSION}" | awk -F '\"' '/tag_name/{print $4; exit}')" - curl -f -L -s -S "https://github.com/hassio-addons/bashio/archive/${BASHIO_TAG}.tar.gz" | tar -xzf - --strip 1 -C /tmp/bashio + curl -f -L -s -S "https://github.com/hassio-addons/bashio/archive/${BASHIO_VERSION}.tar.gz" \ + | tar -xzf - --strip 1 -C /tmp/bashio mv /tmp/bashio/lib /usr/lib/bashio ln -s /usr/lib/bashio/bashio /usr/bin/bashio rm -rf /tmp/bashio