diff options
author | Michael Allen <michael@michaelallen.io> | 2015-02-18 12:31:14 +0000 |
---|---|---|
committer | Michael Allen <michael@michaelallen.io> | 2015-02-18 12:31:14 +0000 |
commit | 923f0ce6c3dabde08ded96e9e1d4066585779ceb (patch) | |
tree | c8ce4917ebb3b7805490101ecefd9834f348cb4a /git-base.sh | |
parent | 93516ff262af423b964b2d788377cfa9f7f949a4 (diff) | |
download | git-sonar-923f0ce6c3dabde08ded96e9e1d4066585779ceb.tar.gz git-sonar-923f0ce6c3dabde08ded96e9e1d4066585779ceb.zip |
status is a readonly variable in zsh
Diffstat (limited to '')
-rwxr-xr-x | git-base.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 |