diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-06-07 19:42:22 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-06-07 19:42:22 +0300 |
commit | fe79a7d84bce908873534af27c07712cf2974d8e (patch) | |
tree | 29657762f20ede4242d0db61fcb5a794c270b12d /armbian-envtemp-cpufreq.sh | |
parent | 3bcbd31d51b7f50bd50246fcfd7be3c398b18d6d (diff) |
don't proceed if failed to read envtemp
Diffstat (limited to 'armbian-envtemp-cpufreq.sh')
-rw-r--r-- | armbian-envtemp-cpufreq.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/armbian-envtemp-cpufreq.sh b/armbian-envtemp-cpufreq.sh index 4b88edd..e46d3c2 100644 --- a/armbian-envtemp-cpufreq.sh +++ b/armbian-envtemp-cpufreq.sh @@ -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 |