fix integer comparision

This commit is contained in:
Aditya 2023-03-01 14:07:05 +05:30
parent a047bbda54
commit e531b0b02a

View file

@ -15,7 +15,7 @@ get_cputemp()
CPU_TEMP="$(sensors | grep temp1 | awk 'NR==1{gsub("+", " "); gsub("\\..", " "); print $2}')"
if [ "$CPU_TEMP" -ge $WARNING_LEVEL ]; then
if [[ "$CPU_TEMP" -ge $WARNING_LEVEL ]]; then
PREFIX="$FIRE$PREFIX"
fi