fix error output
This commit is contained in:
parent
7cf022d779
commit
6587cda27c
@ -11,7 +11,7 @@ variables:
|
||||
commands:
|
||||
- |
|
||||
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
|
||||
echo "$filtered_output"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user