From 629479ffcde3619b7772d6fcb06f63bb27cd48e7 Mon Sep 17 00:00:00 2001 From: Vincenzo-Petrolo Date: Sun, 30 Aug 2020 20:16:32 +0200 Subject: [PATCH] Fixed wrong logic statement --- bar-functions/dwm_solar_panel.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bar-functions/dwm_solar_panel.sh b/bar-functions/dwm_solar_panel.sh index b966fae..489159f 100755 --- a/bar-functions/dwm_solar_panel.sh +++ b/bar-functions/dwm_solar_panel.sh @@ -29,7 +29,7 @@ dwm_solar_panel () { fi #checks if it got a session token - if [ "$SID" != "" ] || [ "$SID" != "null" ]; + if [ "$SID" != "" ] && [ "$SID" != "null" ]; then echo $SID > ~/.cache/solar_panel.cache WATTS=$(curl -s --location --request POST "http://$INVERTER_IP/dyn/getValues.json?sid=$SID" \