mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-09 17:31:03 +01:00
Update ha_entrypoint_modif.sh
This commit is contained in:
@@ -38,7 +38,7 @@ fi
|
|||||||
mkdir -p /run/s6/container_environment
|
mkdir -p /run/s6/container_environment
|
||||||
|
|
||||||
# Check if shebang exists
|
# Check if shebang exists
|
||||||
for shebang in "/usr/bin/env bashio" "/command/with-contenv bashio" "/usr/bin/with-contenv bashio" "/usr/bin/bashio" "/usr/bin/bash" "/usr/bin/sh" "/bin/bash" "/bin/sh"; do
|
for shebang in "/command/with-contenv bashio" "/usr/bin/env bashio" "/usr/bin/with-contenv bashio" "/usr/bin/bashio" "/usr/bin/bash" "/usr/bin/sh" "/bin/bash" "/bin/sh"; do
|
||||||
command_path="${shebang%% *}"
|
command_path="${shebang%% *}"
|
||||||
if [ -x "$command_path" ] && "$command_path" echo "yes" > /dev/null 2>&1; then
|
if [ -x "$command_path" ] && "$command_path" echo "yes" > /dev/null 2>&1; then
|
||||||
echo "Valid shebang: $shebang"
|
echo "Valid shebang: $shebang"
|
||||||
|
|||||||
Reference in New Issue
Block a user