Skip to content

Commit

Permalink
Bugfix, fix find *png picking up 'run_optipng' script
Browse files Browse the repository at this point in the history
Build failed because optipng tried to run against the script 'run_optipng'. This is because the file glob was looking for files ending in "png" rather than files ending with ".png"
  • Loading branch information
DanVanAtta committed Sep 3, 2019
1 parent f60d465 commit 44e60d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .travis/run_optipng
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ git config --global user.name "tripleabuilderbot"

## find all PNG files, run lossless compression
## Filter output for errors, the line stating which file is being proccessed and percentage decrease
find . -name "*png" \
find . -name "*.png" \
| xargs optipng -preserve -o7 2>&1 \
| grep -iE "^** Processing|% decrease|error|warn"

Expand Down

0 comments on commit 44e60d3

Please sign in to comment.