Show export failures and unexpected stops in package.sh and release.sh

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Denis Defolie
2026-10-12 17:53:04 +02:00
parent 2e636371d9
commit 0f4e6ff694
2 changed files with 10 additions and 1 deletions
+1
View File
@@ -22,6 +22,7 @@ for arg in "$@"; do
done
fail() { echo "ERREUR : $*" >&2; exit 1; }
trap 'echo "ERREUR : arret inattendu a la ligne ${LINENO} (code $?)" >&2' ERR
VERSION="$(sed -n 's/^config\/version="\(.*\)"/\1/p' project.godot)"
[ -n "${VERSION}" ] || fail "config/version absent de project.godot"