mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
Handle it better
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Check HomeAssistant config",
|
||||
"version": "0.1",
|
||||
"version": "0.2",
|
||||
"slug": "check_config",
|
||||
"description": "Check HomeAssistant config with a new version",
|
||||
"url": "https://home-assistant.io/addons/check_config/",
|
||||
|
||||
@@ -22,4 +22,11 @@ fi
|
||||
|
||||
echo "[INFO] Install done, check config now"
|
||||
|
||||
exec hass -c /config --script check_config
|
||||
cp -r /config /tmp/config > /dev/null
|
||||
if ! HASS_OUTPUT="$(hass -c /tmp/config --script check_config)"
|
||||
then
|
||||
echo "[ERROR] Wrong config found: $HASS_OUTPUT"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[INFO] Okay :)"
|
||||
|
||||
Reference in New Issue
Block a user