2
0

Drill down on what genassets command is failing.

This commit is contained in:
Maarten Billemont 2018-06-05 15:09:11 -04:00
parent cc5c45e3aa
commit 66e893fd83
2 changed files with 7 additions and 2 deletions

View File

@ -3,7 +3,7 @@
cd "${BASH_SOURCE%/*}" cd "${BASH_SOURCE%/*}"
source bashlib source bashlib
trap 'echo >&2 "ERROR: $?: $BASH_COMMAND"' ERR trap 'echo >&2 "ERROR: $?: $BASH_COMMAND"' ERR
set -eE set -e
cd .. cd ..
export PATH+=:/usr/local/bin export PATH+=:/usr/local/bin
@ -54,6 +54,8 @@ splashes=(
) )
copyImage() { copyImage() {
trap 'echo >&2 "ERROR: $?: $BASH_COMMAND"' ERR
set -e
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
@ -68,8 +70,11 @@ copyImage() {
done <<< "$niftyNinePatch" done <<< "$niftyNinePatch"
fnip fnip
else else
echo >&2 'pinf'
pinf '%s -> %s' "${src##*/}" "${dst##*/}" pinf '%s -> %s' "${src##*/}" "${dst##*/}"
echo >&2 'cp <$src> <$dst>'
cp "$src" "$dst" cp "$src" "$dst"
echo >&2 'fnip'
fnip fnip
fi fi
} }

View File

@ -2,7 +2,7 @@
cd "${BASH_SOURCE%/*}" cd "${BASH_SOURCE%/*}"
source ./bashlib source ./bashlib
trap 'echo >&2 "ERROR: $?: $BASH_COMMAND"' ERR trap 'echo >&2 "ERROR: $?: $BASH_COMMAND"' ERR
set -eE set -e
cd .. cd ..
export PATH+=:/usr/libexec export PATH+=:/usr/libexec