From fb86b3bc15994b76646aaee0e0a9f7997bd8e0d0 Mon Sep 17 00:00:00 2001 From: Maarten Billemont Date: Tue, 18 Nov 2014 07:21:56 -0500 Subject: [PATCH] exit before pinf and cp --- Scripts/genassets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Scripts/genassets b/Scripts/genassets index 891d4c71..b574250c 100755 --- a/Scripts/genassets +++ b/Scripts/genassets @@ -56,8 +56,8 @@ copyImage() { local src=$1 dst=$2 if [[ $src = *.9.png || $src = *.9@*.png ]]; then - pinf '%s -> %s (ninepatch)' "${src##*/}" "${dst##*/}" exit + pinf '%s -> %s (ninepatch)' "${src##*/}" "${dst##*/}" niftyNinePatch=$(java -Dapple.awt.UIElement=true -jar Scripts/NiftyNinePatchHelper.jar "$src" "$dst") || return while IFS='=' read var value; do [[ $var = imageMode ]] && value=${value#'"resize:'} value=${value%'"'} && IFS=, read capLeft capWidth capRight capTop _ _ _ capHeight _ _ _ capBottom <<< "$value" @@ -69,6 +69,7 @@ exit fnip else pinf '%s -> %s' "${src##*/}" "${dst##*/}" +exit cp "$src" "$dst" fnip fi