Skip to content

Commit

Permalink
Trick build_docs to ignore explicitly unindexed images
Browse files Browse the repository at this point in the history
  • Loading branch information
ajdapretnar committed Feb 3, 2020
1 parent 96f4943 commit c5181e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis/build_doc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ images="$(git diff --name-only origin/master..HEAD |
echo "Checking if images are indexed:"
while read image; do
[ -f "$image" ] || continue
if [[ "$image" == *"_unindexed"* ]]; then
continue
fi
imtype=$(identify -verbose "$image" | awk '/^ *Type: /{ print $2 }')
echo "$image $imtype"
if ! echo "$imtype" | grep -Eq '(Palette|Grayscale)'; then
Expand Down

0 comments on commit c5181e4

Please sign in to comment.