From 3725c723049fdd88bd2ad27fb298a19c41789253 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 30 Sep 2025 14:55:09 +1300 Subject: [PATCH] fix error --- whatsdirty | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/whatsdirty b/whatsdirty index bb2b97e..625f6c5 100755 --- a/whatsdirty +++ b/whatsdirty @@ -263,8 +263,8 @@ print_summary() { local temp_file="$1" local total_dirty total_clean total_behind total_ahead total_diverged - total_dirty=$(grep -c "^D|" "$temp_file" 2>/dev/null || echo 0) - total_clean=$(grep -c "^C|" "$temp_file" 2>/dev/null || echo 0) + total_dirty=$(grep -c "^D|" "$temp_file" 2>/dev/null) + total_clean=$(grep -c "^C|" "$temp_file" 2>/dev/null) # Count upstream statuses total_behind=0