Skip to content

Commit eac8d0f

Browse files
authored
Start an emergency shell when a containerized build fails (#18)
1 parent c752b36 commit eac8d0f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

scripts/build-in-docker.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ on_exit() {
2222
trap on_exit EXIT
2323

2424
if ! ./build-all.sh; then
25-
echo "Containerized build failed - $BUILD_TMP is discarded automatically."
25+
set +x
26+
echo 1>&2
27+
echo "Containerized build failed." 1>&2
28+
echo "Starting an emergency shell, so that you can analyze the issue..." 1>&2
29+
echo "Note: the entire $BUILD_TMP will be discarded as soon as you exit this shell!" 1>&2
30+
echo 1>&2
31+
bash -i
2632
exit 1
2733
fi
2834

0 commit comments

Comments
 (0)