7 lines
135 B
Nix
Raw Normal View History

2020-02-17 16:00:59 +03:00
{ ... }:
''
temp=$((`cat /sys/class/thermal/thermal_zone*/temp | sort | tail -1`/1000))
echo $temp °
[[ $temp -gt 80 ]] && exit 33
''