mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-22 02:22:53 +00:00
fix integer comparision
This commit is contained in:
parent
a047bbda54
commit
e531b0b02a
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ get_cputemp()
|
||||||
|
|
||||||
CPU_TEMP="$(sensors | grep temp1 | awk 'NR==1{gsub("+", " "); gsub("\\..", " "); print $2}')"
|
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"
|
PREFIX="$FIRE$PREFIX"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue