CI logged only "trap: ERR: bad trap" — /bin/sh is dash, which rejects ERR traps and then set -e exits before hostname checks or /data setup. Keep portable step() echoes for the next CI diagnosis. Co-Authored-By: Composer <noreply@cursor.com> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+2
-3
@@ -7,9 +7,8 @@
|
|||||||
# tests see the FATAL text rather than an earlier set -e abort).
|
# tests see the FATAL text rather than an earlier set -e abort).
|
||||||
set -e
|
set -e
|
||||||
# #region agent log
|
# #region agent log
|
||||||
# Debug: CI showed exit=1 with empty docker logs after /data/opendkim was
|
# Debug (session 816647): dash does not support `trap … ERR` ("bad trap" then
|
||||||
# created — surface the failing line under set -e (session 816647).
|
# set -e aborts before hostname checks). Step echoes only — portable on /bin/sh.
|
||||||
trap 'echo "entrypoint: command failed at line $LINENO (exit $?)" >&2' ERR
|
|
||||||
step() { echo "entrypoint: $*" >&2; }
|
step() { echo "entrypoint: $*" >&2; }
|
||||||
# #endregion
|
# #endregion
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user