From 923f0ce6c3dabde08ded96e9e1d4066585779ceb Mon Sep 17 00:00:00 2001 From: Michael Allen Date: Wed, 18 Feb 2015 12:31:14 +0000 Subject: status is a readonly variable in zsh --- git-base.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git-base.sh') diff --git a/git-base.sh b/git-base.sh index 0847d8f..1c6ba0c 100755 --- a/git-base.sh +++ b/git-base.sh @@ -206,9 +206,9 @@ porcelain_status() { count_from_porcelain() { if is_repo; then - status="$(porcelain_status)" + current_status="$(porcelain_status)" pattern="$1" - echo "$(echo "$status" | grep -p "$pattern" | wc -l | grep -oEi '[0-9][0-9]*')" + echo "$(echo "$current_status" | grep -p "$pattern" | wc -l | grep -oEi '[0-9][0-9]*')" else echo "0" fi -- cgit v1.2.3