Add support for ignoring errors

This commit is contained in:
Dan Church 2021-06-29 13:42:54 -05:00
parent 38411917a9
commit 191d91a1a8
Signed by: h3xx
GPG Key ID: EA2BF379CD2CDBD0
1 changed files with 6 additions and 0 deletions

View File

@ -4,6 +4,7 @@
PRESERVE_TIMESTAMP=0
LOSSY=0
KEEP_BACKUP_SUFFIX=.old-unoptimized
FORCE=0
TEMP_FILES=()
cleanup() {
@ -140,6 +141,11 @@ if [[ $LOSSY -ne 0 ]]; then
--optimize-images
)
fi
if [[ $FORCE -ne 0 ]]; then
QPDF_ARGS+=(
--warning-exit-0
)
fi
ERRORS=0
FREED_TOTAL=0