Skip to content

Commit 2a16a90

Browse files
CopilotJaclynCodes
andcommitted
Fix grep count pattern to avoid double-printing zero
Co-authored-by: JaclynCodes <218383634+JaclynCodes@users.noreply.github.com>
1 parent 9cc3575 commit 2a16a90

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/iteration-status-emails.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ jobs:
6969
grep "^[0-9]*:-[[:space:]]*✋" || true)
7070
7171
# Count tasks
72-
RUNNER_COUNT=$(echo "$RUNNER_TASKS" | grep -c . || echo "0")
73-
HAND_COUNT=$(echo "$HAND_TASKS" | grep -c . || echo "0")
72+
RUNNER_COUNT=$(echo "$RUNNER_TASKS" | grep -c . || true)
73+
HAND_COUNT=$(echo "$HAND_TASKS" | grep -c . || true)
7474
7575
echo "Found $RUNNER_COUNT tasks in progress"
7676
echo "Found $HAND_COUNT blocked tasks"

0 commit comments

Comments
 (0)