Update ha_entrypoint.sh

This commit is contained in:
Alexandre
2024-01-15 13:47:52 +01:00
committed by GitHub
parent ac74d2f9ed
commit 3c12ed2503

View File

@@ -38,14 +38,11 @@ for SCRIPTS in /etc/cont-init.d/*; do
sed -i "s/bashio::exit.ok/return 0/g" "$SCRIPTS"
# shellcheck source=/dev/null
source "$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
# Support for posix only shell
else
# Support for posix only shell
/."$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
fi
# Start the script
/."$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
# Cleanup
rm "$SCRIPTS"
done