_lp_temperature: fix variable leak
This commit is contained in:
parent
d6375dd46d
commit
aa5e3f3591
@ -1246,7 +1246,7 @@ _lp_temperature() {
|
|||||||
# and colorize it through _lp_color_map.
|
# and colorize it through _lp_color_map.
|
||||||
[[ "$LP_ENABLE_TEMP" != 1 ]] && return
|
[[ "$LP_ENABLE_TEMP" != 1 ]] && return
|
||||||
|
|
||||||
temperature="$($_lp_temp_function)"
|
local temperature="$($_lp_temp_function)"
|
||||||
if [[ $temperature -ge $LP_TEMP_THRESHOLD ]]; then
|
if [[ $temperature -ge $LP_TEMP_THRESHOLD ]]; then
|
||||||
echo -ne "${LP_MARK_TEMP}$(_lp_color_map $temperature 120)$temperature°${NO_COL}"
|
echo -ne "${LP_MARK_TEMP}$(_lp_color_map $temperature 120)$temperature°${NO_COL}"
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user