From 6b621a7b5e695e860832e4c54811b9734c7d25ee Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Sun, 5 May 2024 17:17:35 +0200 Subject: [PATCH] fixed-typos --- scrape-inverter.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scrape-inverter.sh b/scrape-inverter.sh index 9aa840e..3fa75c0 100644 --- a/scrape-inverter.sh +++ b/scrape-inverter.sh @@ -15,8 +15,8 @@ if test -n "$data"; then e2="${params[4]}" te2="${params[5]}" else - echo "$ts ot no data!" - return + echo "$ts got no data!" + exit fi infodata=$(curl -s http://$host/$info | jq -r '.data | join (" ")') @@ -31,8 +31,8 @@ if test -n "$infodata"; then minpower="${params[5]}" maxpower="${params[6]}" else - echo "$ts ot no info!" - return + echo "$ts got no info!" + exit fi if test -n "$p1" -a -n "$ip"; then