summaryrefslogtreecommitdiffstats
path: root/git-base.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-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