Skip to content

Commit

Permalink
Update ha_entrypoint.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbelgium authored Jan 15, 2024
1 parent 3335f5f commit ea4be00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .templates/ha_entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ for SCRIPTS in /etc/cont-init.d/*; do
# Use source to share env variables when requested
if [ "${ha_entry_source:-null}" = true ] && command -v "source" &>/dev/null; then
# Exit cannot be used with source
sed -iE "s/(.*\s|^)exit ([0-9]+)/\1 return \2 || exit \2/g" "$SCRIPTS"
sed -i "s/(.*\s|^)exit ([0-9]+)/\1 return \2 || exit \2/g" "$SCRIPTS"
sed -i "s/bashio::exit.nok/return 1/g" "$SCRIPTS"
sed -i "s/bashio::exit.ok/return 0/g" "$SCRIPTS"
# shellcheck source=/dev/null
Expand Down

0 comments on commit ea4be00

Please sign in to comment.