X-Git-Url: https://git.saurik.com/cydia.git/blobdiff_plain/5c624298a1145bdcd7e279642f9155ab114b94c2..8511eb452e6188051960d2d96473a7810f85f5f2:/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