Update ha_entrypoint.sh

This commit is contained in:
Alexandre
2024-01-14 21:52:13 +01:00
committed by GitHub
parent cc396e1c5f
commit bcc737a3a7

View File

@@ -32,14 +32,7 @@ for SCRIPTS in /etc/cont-init.d/*; do
fi fi
# Start the script # Start the script
if command -v "source" &>/dev/null; then /."$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
# Use source to share env variables
# shellcheck source=/dev/null
/."$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
else
# Support for posix only shell
/."$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
fi
# Cleanup # Cleanup
rm "$SCRIPTS" rm "$SCRIPTS"