Skip to content

Commit 5d75567

Browse files
committed
🧑‍💻 Silence findMissingTranslations grep output
1 parent d9f2c64 commit 5d75567

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildroot/share/scripts/findMissingTranslations.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,11 @@ for WORD in $(awk '/LSTR/{print $2}' language_en.h); do
7171
# Find all selected languages that lack the string
7272
LANG_MISSING=" "
7373
for LANG in $TEST_LANGS; do
74-
if [[ $(grep -c -E "^ *LSTR +$WORD\b" language_${LANG}.h) -eq 0 ]]; then
74+
if [[ $(grep -c -E "^ *LSTR +$WORD\b" language_${LANG}.h 2>/dev/null) -eq 0 ]]; then
7575
INHERIT=$(awk '/using namespace/{print $3}' language_${LANG}.h | sed -E 's/Language_([a-zA-Z_]+)\s*;/\1/')
7676
if [[ -z $INHERIT || $INHERIT == "en" ]]; then
7777
LANG_MISSING+="$LANG "
78-
elif [[ $(grep -c -E "^ *LSTR +$WORD\b" language_${INHERIT}.h) -eq 0 ]]; then
78+
elif [[ $(grep -c -E "^ *LSTR +$WORD\b" language_${INHERIT}.h 2>/dev/null) -eq 0 ]]; then
7979
LANG_MISSING+="$LANG "
8080
fi
8181
fi

0 commit comments

Comments
 (0)