Skip to content

Commit

Permalink
Meta: Make missing optipng fatal in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
InvalidUsernameException authored and AtkinsSJ committed Feb 12, 2025
1 parent e51f062 commit 0a9c66e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Meta/check-png-sizes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ script_path=$(cd -P -- "$(dirname -- "$0")" && pwd -P)
cd "${script_path}/.."

if ! command -v optipng >/dev/null ; then
if [[ "$GITHUB_ACTIONS" == "true" ]]; then
echo 'optipng is not installed, failing check because running in CI.'
exit 1
fi
echo 'optipng is not installed, skipping png size check.'
echo 'Please install optipng for your system to run this check.'
exit 0
Expand Down

0 comments on commit 0a9c66e

Please sign in to comment.