mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-30 03:06:06 +02:00
Update ha_entrypoint.sh
This commit is contained in:
@@ -38,14 +38,11 @@ for SCRIPTS in /etc/cont-init.d/*; do
|
|||||||
sed -i "s/bashio::exit.ok/return 0/g" "$SCRIPTS"
|
sed -i "s/bashio::exit.ok/return 0/g" "$SCRIPTS"
|
||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
source "$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
|
source "$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
|
||||||
# Support for posix only shell
|
|
||||||
else
|
else
|
||||||
|
# Support for posix only shell
|
||||||
/."$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
|
/."$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Start the script
|
|
||||||
/."$SCRIPTS" || echo -e "\033[0;31mError\033[0m : $SCRIPTS exiting $?"
|
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
rm "$SCRIPTS"
|
rm "$SCRIPTS"
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user