summaryrefslogtreecommitdiff
path: root/image
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-03-28 21:22:08 +0000
committerGerald Combs <gerald@wireshark.org>2013-03-28 21:22:08 +0000
commit1da35f4a3c5ade0a5cfe9f1d0152222933c1ce16 (patch)
tree4472e8e4ef21a2608ca4dd8de8dc53d632b32d29 /image
parentd3fe183ebae19e5320d2064860ee34a9f834a439 (diff)
downloadwireshark-1da35f4a3c5ade0a5cfe9f1d0152222933c1ce16.tar.gz
Remove a couple of unneeded lines and fix default execution.
svn path=/trunk/; revision=48631
Diffstat (limited to 'image')
-rwxr-xr-ximage/compress-pngs5
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"