don't proceed if failed to read envtemp
This commit is contained in:
parent
3bcbd31d51
commit
fe79a7d84b
@ -95,6 +95,7 @@ echo -n "read" >&3
|
||||
read -t 5 response <&3
|
||||
|
||||
envtemp=$(echo "$response" | jq ".temp" | awk "{print int(\$1+0.5)}")
|
||||
[ -z "$envtemp" ] && die "failed to read environment temperature"
|
||||
|
||||
# setting corresponding cpu freq
|
||||
while read temp; do
|
||||
|
Loading…
x
Reference in New Issue
Block a user