exit before pinf and cp
This commit is contained in:
parent
964b6f050b
commit
fb86b3bc15
@ -56,8 +56,8 @@ copyImage() {
|
|||||||
local src=$1 dst=$2
|
local src=$1 dst=$2
|
||||||
|
|
||||||
if [[ $src = *.9.png || $src = *.9@*.png ]]; then
|
if [[ $src = *.9.png || $src = *.9@*.png ]]; then
|
||||||
pinf '%s -> %s (ninepatch)' "${src##*/}" "${dst##*/}"
|
|
||||||
exit
|
exit
|
||||||
|
pinf '%s -> %s (ninepatch)' "${src##*/}" "${dst##*/}"
|
||||||
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"
|
||||||
@ -69,6 +69,7 @@ exit
|
|||||||
fnip
|
fnip
|
||||||
else
|
else
|
||||||
pinf '%s -> %s' "${src##*/}" "${dst##*/}"
|
pinf '%s -> %s' "${src##*/}" "${dst##*/}"
|
||||||
|
exit
|
||||||
cp "$src" "$dst"
|
cp "$src" "$dst"
|
||||||
fnip
|
fnip
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user