You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hooks/teammate-idle: arithmetic syntax error when a slice plan has no open task #86
When a plan has no matching line, grep -c prints 0and exits 1, so || echo 0 appends a second 0. count becomes "0\n0", and the arithmetic fails with 0\n0: syntax error in expression. A teammate saw this in a live run whenever any slice plan of the current milestone was fully ticked.
Fix: count=$(grep -c '…' "$plan" 2>/dev/null); count=${count:-0}. Alternatively, drop || echo 0 and rely on grep -c always printing a number.
Activity
chore: release 0.12.0 (#96)