diff --git a/.templates/ha_entrypoint.sh b/.templates/ha_entrypoint.sh index ba716f33b..3575265c1 100755 --- a/.templates/ha_entrypoint.sh +++ b/.templates/ha_entrypoint.sh @@ -28,7 +28,7 @@ for SCRIPTS in /etc/cont-init.d/*; do currentshebang="$(sed -n '1{s/^#![[:blank:]]*//p;q}' "$SCRIPTS")" if [ ! -f "${currentshebang%% *}" ]; then for shebang in "/command/with-contenv bashio" "/usr/bin/env bashio" "/usr/bin/bashio" "/bin/bash" "/bin/sh"; do - if [ -f "${shebang%% *}" ]; then + if [ -f "${shebang%% *}" ] && [[ "${shebang%% *} echo \"yes\"" ]]; then break fi done