diff options
author | Gerald Combs <gerald@wireshark.org> | 2013-03-28 21:22:08 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2013-03-28 21:22:08 +0000 |
commit | 1da35f4a3c5ade0a5cfe9f1d0152222933c1ce16 (patch) | |
tree | 4472e8e4ef21a2608ca4dd8de8dc53d632b32d29 /image | |
parent | d3fe183ebae19e5320d2064860ee34a9f834a439 (diff) | |
download | wireshark-1da35f4a3c5ade0a5cfe9f1d0152222933c1ce16.tar.gz wireshark-1da35f4a3c5ade0a5cfe9f1d0152222933c1ce16.tar.bz2 wireshark-1da35f4a3c5ade0a5cfe9f1d0152222933c1ce16.zip |
Remove a couple of unneeded lines and fix default execution.
svn path=/trunk/; revision=48631
Diffstat (limited to 'image')
-rwxr-xr-x | image/compress-pngs | 5 |
1 files changed, 1 insertions, 4 deletions
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" |