From 6b246adb2d73b6bf0928cda2f746ae5a6b10d4f8 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 14 May 2023 21:06:07 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 9f6b2215..3a22bf9f 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -50,11 +50,8 @@ CHECKTEMPSENSOR(){ elif [ "${SENSOR_TYPE[${1}]}" == "system" ]; then temp_c=$(vcgencmd measure_temp) - echo "HERE: $temp_c" - temp_c=${test%\'*} - echo "HERE: $temp_c" - temp_c=${test#*=} - echo "HERE: $temp_c" + temp_c=${temp_c%\'*}; temp_c=${temp_c#*=} + fi if [ "$temp_c" != "null" ] && [ "$temp_c" != "" ]; then