Test shebangs

This commit is contained in:
Alexandre
2025-03-02 14:11:25 +01:00
committed by GitHub
parent a39fb9f7c5
commit ad9ad8d0a3

View File

@@ -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