summaryrefslogtreecommitdiffstats
path: root/git-base.sh
diff options
context:
space:
mode:
authorMichael Allen <michael@michaelallen.io>2015-02-18 12:31:14 +0000
committerMichael Allen <michael@michaelallen.io>2015-02-18 12:31:14 +0000
commit923f0ce6c3dabde08ded96e9e1d4066585779ceb (patch)
treec8ce4917ebb3b7805490101ecefd9834f348cb4a /git-base.sh
parent93516ff262af423b964b2d788377cfa9f7f949a4 (diff)
downloadgit-sonar-923f0ce6c3dabde08ded96e9e1d4066585779ceb.tar.gz
git-sonar-923f0ce6c3dabde08ded96e9e1d4066585779ceb.zip
status is a readonly variable in zsh
Diffstat (limited to 'git-base.sh')
-rwxr-xr-xgit-base.sh4
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