From 1da35f4a3c5ade0a5cfe9f1d0152222933c1ce16 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 28 Mar 2013 21:22:08 +0000 Subject: Remove a couple of unneeded lines and fix default execution. svn path=/trunk/; revision=48631 --- image/compress-pngs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'image') diff --git a/image/compress-pngs b/image/compress-pngs index a84439a7f3..f48a69d821 100755 --- a/image/compress-pngs +++ b/image/compress-pngs @@ -1,15 +1,12 @@ #!/bin/bash -hash optipng 2>/dev/null && HAVE_OPTIPNG="True" -hash optipng 2>/dev/null && HAVE_OPTIPNG="True" - FILE_LIST_CMD="find . -type f -name \"*.png\"" if [ -n "$1" ] ; then FILE_LIST_CMD="echo $1" fi -$FILE_LIST_CMD | while read PNG_FILE ; do +bash -c "$FILE_LIST_CMD" | while read PNG_FILE ; do echo Compressing $PNG_FILE hash optipng 2>/dev/null && optipng -o3 -quiet "$PNG_FILE" hash advpng 2>/dev/null && advpng -z -4 "$PNG_FILE" -- cgit v1.2.3