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