From 53ce540a2834046b74d045c1e00344135ed67b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olivier=20Mengu=C3=A9?= Date: Wed, 9 Jul 2014 23:27:18 +0200 Subject: [PATCH] _lp_load_color: fix $variable inside (( )) --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index 1883a93..97271ee 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1353,7 +1353,7 @@ _lp_load_color() tmp=${tmp#0} # Remove leading '0', again (ex: 0.09) local -i load=${tmp:-0}/$_lp_CPUNUM - if (( load > $LP_LOAD_THRESHOLD )); then + if (( load > LP_LOAD_THRESHOLD )); then local ret="$(_lp_color_map $load 200)${LP_MARK_LOAD}" if [[ "$LP_PERCENTS_ALWAYS" == 1 ]]; then