Skip to content

Commit b52d493

Browse files
Merge pull request #143 from LedgerHQ/feat/apa/fix_1bpp_color_checking
Fix 1BPP color checking
2 parents bca308c + 34fcd76 commit b52d493

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

scripts/check_icons.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,15 @@ check_glyph() (
6767
error=1
6868
fi
6969

70-
if ! echo "$content" | grep -q "0.*0.*0.*black"; then
70+
# get the color lines
71+
color_lines=$(echo "$content" | grep -A3 "Colors: " | tail -n -2)
72+
73+
if ! echo "$color_lines" | grep -q " #000000 "; then
7174
log_error "Glyph should have the black color defined"
7275
error=1
7376
fi
7477

75-
if ! echo "$content" | grep -q "255.*255.*255.*white"; then
78+
if ! echo "$color_lines" | grep -q " #FFFFFF "; then
7679
log_error "Glyph should have the white color defined"
7780
error=1
7881
fi

0 commit comments

Comments
 (0)