Skip to content

Commit 8b88352

Browse files
authored
Bugfix: we fail to see where EXPORT or DECLARE was used (#103)
* Bugfix: we fail to see where EXPORT or DECLARE was used * Modify sort command to prevent failure on empty input
1 parent ca5a197 commit 8b88352

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/generate-thumbnails.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,12 @@ jobs:
8686
8787
vendors=$(
8888
find . -maxdepth 1 -type f \
89-
\( -name "*.conf" -o -name "*.csc" -o -name "*.wip" -o -name "*.tvb" \) \
90-
-exec grep -hE '^[[:space:]]*BOARD_VENDOR=' {} + 2>/dev/null \
91-
| sed -E 's/^[[:space:]]*BOARD_VENDOR=//; s/^"//; s/"$//' \
89+
\( -name "*.conf" -o -name "*.csc" -o -name "*.wip" -o -name "*.tvb" \) \
90+
-exec grep -h 'BOARD_VENDOR=' {} + 2>/dev/null \
91+
| sed -E '
92+
s/.*BOARD_VENDOR=//;
93+
s/^["'\'']//; s/["'\'']$//;
94+
' \
9295
| tr '[:upper:]' '[:lower:]' \
9396
| tr '_' '-' \
9497
| awk 'NF' \

0 commit comments

Comments
 (0)