mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-25 15:30:32 +02:00
Test shebangs
This commit is contained in:
@@ -39,7 +39,7 @@ mkdir -p /run/s6/container_environment
|
|||||||
|
|
||||||
# Check if shebang exists
|
# 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
|
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
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user