Fix state change

This commit is contained in:
Peter 2018-11-29 23:04:36 +01:00
parent 029397c2d4
commit d84ba6a6a4
Signed by: pludi
GPG Key ID: CFBA360E696EDC99
1 changed files with 28 additions and 28 deletions

View File

@ -40,7 +40,7 @@ function write_json {
return
fi
if [ "$status" -eq 0 ]
if [ "$status" -gt 0 ]
then
printf "$TEMPLATE_JSON" $OPEN_JSON $( date +%s ) > $STATUS_JSON
else