aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya <bluenerd@protonmail.com>2023-03-01 14:07:05 +0530
committerAditya <bluenerd@protonmail.com>2023-03-01 14:07:05 +0530
commite531b0b02a6daf5f77fec12ab94d84572687d7c4 (patch)
tree71d70751ed331356d177a1d71f1290b1e5d75015
parenta047bbda54626585eaa928a9a341062b882c2dc3 (diff)
fix integer comparision
-rwxr-xr-xmodules/cputemp2
1 files changed, 1 insertions, 1 deletions
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