From ad9ad8d0a347aa086c77224a0d410a2690cf3411 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Sun, 2 Mar 2025 14:11:25 +0100 Subject: [PATCH] Test shebangs --- .templates/ha_entrypoint_modif.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.templates/ha_entrypoint_modif.sh b/.templates/ha_entrypoint_modif.sh index 026efff8b..76be60752 100755 --- a/.templates/ha_entrypoint_modif.sh +++ b/.templates/ha_entrypoint_modif.sh @@ -39,7 +39,7 @@ mkdir -p /run/s6/container_environment # Check if shebang exists for shebang in "/command/with-contenv bashio" "/usr/bin/with-contenv bashio" "/usr/bin/env bashio" "/usr/bin/bashio" "/usr/bin/bash" "/usr/bin/sh" "/bin/bash" "/bin/sh"; do - if [ -f "${shebang%% *}" ]; then + if [ -f "${shebang%% *}" ] && [[ "${shebang%% *} echo \"yes\"" ]]; then break fi done