Skip to content

Commit 34fcd76

Browse files
Fixed 1BPP color checking
1 parent bca308c commit 34fcd76

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)