diff options
author | Aditya <bluenerd@protonmail.com> | 2023-03-01 14:07:05 +0530 |
---|---|---|
committer | Aditya <bluenerd@protonmail.com> | 2023-03-01 14:07:05 +0530 |
commit | e531b0b02a6daf5f77fec12ab94d84572687d7c4 (patch) | |
tree | 71d70751ed331356d177a1d71f1290b1e5d75015 | |
parent | a047bbda54626585eaa928a9a341062b882c2dc3 (diff) |
fix integer comparision
-rwxr-xr-x | modules/cputemp | 2 |
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 |