Skip to content

Commit 4456ef2

Browse files
committed
chore: fix empty variables in output
Correction for 582cfb3 commit. Part of #1610
1 parent 9d50c57 commit 4456ef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: .github/workflows/todos-extract-from-code.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ jobs:
133133
if [ -n "$NEW_PUZZLES" ]; then
134134
echo "Found puzzles without related issues:"
135135
echo "$NEW_PUZZLES" | while read PUZZLE_ID; do
136-
grep "$PUZZLE_ID" todos-in-code.tsv | IFS=$'\t' read SKIP_PUZZLE_ID TICKET TITLE REST
137-
echo "$PUZZLE_ID from #$TICKET: $(echo "$TITLE" | sed 's|^"||;s|"$||;s|""|"|'g)"
136+
TITLE="$(grep "$PUZZLE_ID" todos-in-code.tsv | cut -d$'\t' -f3 | sed 's|^"||;s|"$||;s|""|"|g')"
137+
echo "- $PUZZLE_ID: $TITLE"
138138
done
139139
HAVE_PUZZLES_WITHOUT_ISSUES=yes
140140
else

0 commit comments

Comments
 (0)