summarylogtreecommitdiffstats
path: root/optipng.sh.in
diff options
context:
space:
mode:
authorQue Quotion2019-07-10 19:36:34 +0900
committerQue Quotion2019-07-10 19:36:34 +0900
commit0d3062da404b6a2e6bc94328e79fc54a8f5329cf (patch)
tree83df56907795abd9aa1a14b66946100f269e1e2c /optipng.sh.in
parenta6fd22e346fc502bb625139d55704e6741facecf (diff)
downloadaur-0d3062da404b6a2e6bc94328e79fc54a8f5329cf.tar.gz
United Maintenance Plan: restructure all libmakepkg scripts (replace tabs with whitespace, reduce complexity, use safer methods to set flags)
Diffstat (limited to 'optipng.sh.in')
-rw-r--r--optipng.sh.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/optipng.sh.in b/optipng.sh.in
index fc66d638412..9fb6c7ded6c 100644
--- a/optipng.sh.in
+++ b/optipng.sh.in
@@ -15,14 +15,14 @@ packaging_options+=('optipng')
tidy_modify+=('tidy_optipng')
tidy_optipng() {
- if check_option "optipng" "y"; then
- msg2 "$(gettext "Optimizing PNG images...")"
- local png
- find . -type f -iname "*.png" 2>/dev/null | while read -r png ; do
- if [[ $(file --brief --mime-type "$png") = 'image/png' ]]; then
- optipng "${OPTIPNGFLAGS[@]}" "$png" &>/dev/null ||
- warning "$(gettext "Could not optimize PNG image : %s")" "${png/$pkgdir\//}"
- fi
- done
- fi
+ if check_option "optipng" "y"; then
+ msg2 "$(gettext "Optimizing PNG images...")"
+ local png
+ find . -type f -iname "*.png" 2>/dev/null | while read -r png ; do
+ if [[ $(file --brief --mime-type "$png") = 'image/png' ]]; then
+ optipng "${OPTIPNGFLAGS[@]}" "$png" &>/dev/null ||
+ warning "$(gettext "Could not optimize PNG image : %s")" "${png/$pkgdir\//}"
+ fi
+ done
+ fi
}