From e531b0b02a6daf5f77fec12ab94d84572687d7c4 Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 1 Mar 2023 14:07:05 +0530 Subject: [PATCH] fix integer comparision --- modules/cputemp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/cputemp b/modules/cputemp index da8f183..e856248 100755 --- a/modules/cputemp +++ b/modules/cputemp @@ -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