X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/5c624298a1145bdcd7e279642f9155ab114b94c2..6220fd7da99b2edf6b1c6e98e65b45216a32e7af:/pngcrush.sh diff --git a/pngcrush.sh b/pngcrush.sh index d74845ab..685a6af3 100755 --- a/pngcrush.sh +++ b/pngcrush.sh @@ -5,8 +5,8 @@ out=$2 steps=() -src=_.png -dst=__.png +src=${out}.src.png +dst=${out}.dst.png copy=("${src}" "${dst}") @@ -16,7 +16,7 @@ function step() { steps+=($(stat -f "%z" "${src}")) } -pngcrush=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush +pngcrush=$(xcode-select --print-path)/Platforms/iPhoneOS.platform/Developer/usr/bin/pngcrush if grep CgBI "${png}" &>/dev/null; then if [[ ${png} != ${out} ]]; then