From 71321c84ab86067edca74ccb3db1b56fe830c747 Mon Sep 17 00:00:00 2001 From: Vincent Lara Date: Sun, 13 Jul 2014 23:02:33 +0200 Subject: [PATCH] Handle neagative temperature in _lp_acpi_temp --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 97271ee..09e73ab 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1380,7 +1380,7 @@ _lp_temp_sensors() _lp_temp_acpi() { 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 done }