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