From 64a31b3d29d56ce18dc50c955e9647194ce74022 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Fri, 3 Apr 2026 09:12:58 +0200 Subject: [PATCH] Add check for existing bashio before copy Check if bashio is already installed before copying. --- .templates/00-banner.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.templates/00-banner.sh b/.templates/00-banner.sh index ab9b37769..60483f96e 100755 --- a/.templates/00-banner.sh +++ b/.templates/00-banner.sh @@ -16,7 +16,9 @@ if ! bashio::supervisor.ping 2>/dev/null; then bashio::log.blue "Version : ${BUILD_VERSION:-1.0}" bashio::log.blue "Config source: ENV + /data/options.json" bashio::log.blue '-----------------------------------------------------------' - cp -rf /usr/local/lib/bashio-standalone.sh /usr/bin/bashio + if [ ! -f /usr/bin/bashio ]; then + cp -rf /usr/local/lib/bashio-standalone.sh /usr/bin/bashio + fi grep -rl "^#!.*bashio" /etc | while IFS= read -r f; do grep -qF "source /usr/local/lib/bashio-standalone.sh" "$f" && continue