2
0

exit in front of niftyninepatch

This commit is contained in:
Maarten Billemont 2014-11-18 00:11:27 -05:00
parent a51d2b5eb4
commit 719deb7926

View File

@ -57,6 +57,7 @@ copyImage() {
if [[ $src = *.9.png || $src = *.9@*.png ]]; then if [[ $src = *.9.png || $src = *.9@*.png ]]; then
pinf '%s -> %s (ninepatch)' "${src##*/}" "${dst##*/}" pinf '%s -> %s (ninepatch)' "${src##*/}" "${dst##*/}"
exit
niftyNinePatch=$(java -Dapple.awt.UIElement=true -jar Scripts/NiftyNinePatchHelper.jar "$src" "$dst") || return niftyNinePatch=$(java -Dapple.awt.UIElement=true -jar Scripts/NiftyNinePatchHelper.jar "$src" "$dst") || return
while IFS='=' read var value; do while IFS='=' read var value; do
[[ $var = imageMode ]] && value=${value#'"resize:'} value=${value%'"'} && IFS=, read capLeft capWidth capRight capTop _ _ _ capHeight _ _ _ capBottom <<< "$value" [[ $var = imageMode ]] && value=${value#'"resize:'} value=${value%'"'} && IFS=, read capLeft capWidth capRight capTop _ _ _ capHeight _ _ _ capBottom <<< "$value"
@ -116,7 +117,6 @@ if [[ "$(latest "$ios_icon"/*)" -nt "$appiconset/Contents.json" ]] ||
rm "$appiconset/Contents.json" rm "$appiconset/Contents.json"
exit exit
fi fi
exit
done done
printf '],"info":{"version":1,"author":"genassets"},"properties":{"pre-rendered":true}}\n' printf '],"info":{"version":1,"author":"genassets"},"properties":{"pre-rendered":true}}\n'