Skip to content

Commit 663da2f

Browse files
committed
Avoid duplicating RegEx in .strings lint via better sed usage
Hat tip @AliSoftware. See #19553 (comment)
1 parent 1897402 commit 663da2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.buildkite/commands/lint-localized-strings-format.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ if [[ $EXIT_CODE -ne 0 ]]; then
2929
#
3030
# Notice the second `sed` call that removes the ANSI escape sequences that
3131
# Fastlane uses to color the output.
32-
grep -e "\[.*\].*genstrings:" $LOGS \
33-
| sed -e 's/\[.*\].*genstrings: error: /- /' \
32+
cat $LOGS \
33+
| sed -ne 's/\[.*\].*genstrings: error: /- /p' \
3434
| sed -e $'s/\x1b\[[0-9;]*m//g' \
3535
| sort \
3636
| uniq \

0 commit comments

Comments
 (0)