summarylogtreecommitdiffstats
path: root/svgo.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 /svgo.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 'svgo.sh.in')
-rw-r--r--svgo.sh.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/svgo.sh.in b/svgo.sh.in
index bdef48fbca8e..f997a855a0bc 100644
--- a/svgo.sh.in
+++ b/svgo.sh.in
@@ -15,14 +15,14 @@ packaging_options+=('svgo')
tidy_modify+=('tidy_svgo')
tidy_svgo() {
- if check_option "svgo" "y"; then
- msg2 "$(gettext "Optimizing SVG images...")"
- local svg
- find . -type f -iname "*.svg" 2>/dev/null | while read -r svg ; do
- if [[ $(file --brief --mime-type "$svg") = 'image/svg' ]]; then
- svgo "${SVGOFLAGS[@]}" "$svg" &>/dev/null ||
- warning "$(gettext "Could not optimize SVG image : %s")" "${svg/$pkgdir\//}"
- fi
- done
- fi
+ if check_option "svgo" "y"; then
+ msg2 "$(gettext "Optimizing SVG images...")"
+ local svg
+ find . -type f -iname "*.svg" 2>/dev/null | while read -r svg ; do
+ if [[ $(file --brief --mime-type "$svg") = 'image/svg' ]]; then
+ svgo "${SVGOFLAGS[@]}" "$svg" &>/dev/null ||
+ warning "$(gettext "Could not optimize SVG image : %s")" "${svg/$pkgdir\//}"
+ fi
+ done
+ fi
}