From 7402f79a7518e74e16d36c74e8b5943d11f390d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Tue, 19 Aug 2014 01:06:16 +0200 Subject: [PATCH] _lp_temp_acpi: simplify regexp --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 09e73ab..b9c500b 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 }