fix error output
Some checks failed
ci/woodpecker/push/test Pipeline was successful
ci/woodpecker/push/notify unknown status

This commit is contained in:
Robert Kaussow 2024-10-20 11:25:28 +02:00
parent 7cf022d779
commit 6587cda27c
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -11,7 +11,7 @@ variables:
commands: commands:
- | - |
output=$(hass -c . --script check_config 2>&1) output=$(hass -c . --script check_config 2>&1)
filtered_output=$(echo "$output" | grep "ERROR" | grep -v "Unknown device") filtered_output=$(echo "$output" | grep "ERROR" | grep -v "Unknown device" || true)
if [ -n "$filtered_output" ]; then if [ -n "$filtered_output" ]; then
echo "$filtered_output" echo "$filtered_output"
exit 1 exit 1