From 9e5bb5c0d3929c147bc5fc4004ea4975eb55f259 Mon Sep 17 00:00:00 2001 From: Anthony Gelibert Date: Thu, 28 Nov 2013 00:21:20 +0100 Subject: [PATCH 1/2] Add forgotten local declaration. --- liquidprompt | 1 + 1 file changed, 1 insertion(+) diff --git a/liquidprompt b/liquidprompt index 4e65cc6..aa48ac3 100755 --- a/liquidprompt +++ b/liquidprompt @@ -769,6 +769,7 @@ _lp_git_branch_color() fi local shortstat + local ret shortstat="$(LC_ALL=C \git diff --shortstat HEAD 2>/dev/null)" if [[ -n "$shortstat" ]] ; then local has_lines From 50e91cd3e3e0f79f61e90004048171711ee92a80 Mon Sep 17 00:00:00 2001 From: polyphemus Date: Sun, 1 Dec 2013 00:29:48 +0100 Subject: [PATCH 2/2] Fix use of non-exist variable 'count' Fixes shell error: ""bash: 46 / : syntax error: operand expected (error token is "/ ") --- liquidprompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/liquidprompt b/liquidprompt index aa48ac3..f837cf9 100755 --- a/liquidprompt +++ b/liquidprompt @@ -1394,7 +1394,7 @@ _lp_temp_sensors() { temperature=$i fi done - echo -ne "$(($temperature/$count))" + echo -ne "$temperature" } # Will set _LP_TEMP_FUNCTION so the temperature monitoring feature use an