]> git.saurik.com Git - cydia.git/blobdiff - pngcrush.sh
Use ProcessArguments to get argv[0] (for iOS 3.0).
[cydia.git] / pngcrush.sh
index 0598451e6231288f88fb4492a7b86d0c102ec7ba..685a6af3cb47836797ced9ab2ccf2c4d90a53223 100755 (executable)
@@ -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