diff --git a/liquidprompt b/liquidprompt index e12444c..f14d248 100755 --- a/liquidprompt +++ b/liquidprompt @@ -957,11 +957,11 @@ _lp_fossil_branch_color() local ret C2E=$(fossil changes | wc -l) C2A=$(fossil extras | wc -l) - ret=$(fossil diff -v | awk "/^(+[^+])|(+$)/ { plus+=1; } /^(-[^-])|(-$)/ { minus+=1; } END { total=\"\"; if(plus>0){ total=\"+\"plus; if(minus>0) total=total\"/\"; } if(minus>0) total=total\"-\"minus; print total;}") + ret=$(fossil diff -v | awk "/^(+[^+])|(+$)/ { plus+=1; } /^(-[^-])|(-$)/ { minus+=1; } END { total=\"\"; if(plus>0){ total=\"+\"plus; if(minus>0) total=total\"/\"; } if(minus>0) total=total\"-\"minus; print total;}") if (( C2E > 0 )); then - [[ -n "$ret" ]] && ret+=" in " - ret="(${LP_COLOR_DIFF}${ret}${C2E}${NO_COL})" + [[ -n "$ret" ]] && ret+=" in " + ret="(${LP_COLOR_DIFF}${ret}${C2E}${NO_COL})" fi if (( $C2A > 0 )); then