Commit 0c4ee7f
mergetest
release.yml: make locale validation fail on a glob miss
The check globbed .release/DandersFrames/Locales/*.lua with no nullglob, so an
unmatched pattern stayed literal, grep errored on the missing file, ERRORS stayed
0, and the step printed "All locale files validated OK" and exited 0. The guard
could not tell "no problems" from "wrong path" — poor for a check whose whole job
is catching broken locales, and newly dangerous now the addon layout can move.
Now sets nullglob, counts the matches, and fails with a specific error when the
count is zero.
Also swaps grep -P for -E. The pattern uses no PCRE syntax, and -P is unavailable
in some environments ("supports only unibyte and UTF-8 locales"). Combined with
the existing 2>/dev/null, a grep that cannot run reads as "file is clean" — the
same silent pass. Verified -E matches all four alternatives identically.1 parent b2f0297 commit 0c4ee7f
1 file changed
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
92 | 105 | | |
93 | | - | |
94 | | - | |
95 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
96 | 113 | | |
97 | 114 | | |
98 | 115 | | |
| |||
0 commit comments