_lp_temp_acpi: simplify regexp
This commit is contained in:
parent
71321c84ab
commit
7402f79a75
@ -1380,7 +1380,7 @@ _lp_temp_sensors()
|
|||||||
_lp_temp_acpi()
|
_lp_temp_acpi()
|
||||||
{
|
{
|
||||||
local i
|
local i
|
||||||
for i in $(acpi -t | sed 's/.* \([-]\?[0-9]*\)\.[0-9]* degrees C$/\1/p'); do
|
for i in $(acpi -t | sed 's/.* \(-\?[0-9]*\)\.[0-9]* degrees C$/\1/p'); do
|
||||||
[[ $i -gt $temperature ]] && temperature=$i
|
[[ $i -gt $temperature ]] && temperature=$i
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user