From 398945ed11478a698aecba7fb5d03905d93c30a5 Mon Sep 17 00:00:00 2001 From: Loki <59907407+Loki-101@users.noreply.github.com> Date: Fri, 28 Nov 2025 16:17:44 -0800 Subject: [PATCH 1/2] Improve error handling in blueprint.sh - Added 'set -eo pipefail' for yarn builds - Docker image will no longer push to production if a Blueprint release is broken; script now returns non-0 exit code on errors during builds --- blueprint.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/blueprint.sh b/blueprint.sh index d2c40f03..2ef3b315 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -254,7 +254,10 @@ if [[ $1 != "-bash" ]]; then PRINT FATAL "Missing dependency \"yarn\"." fi hide_progress + + set -eo pipefail yarn install + set +eo pipefail ((PROGRESS_NOW++)) @@ -370,7 +373,9 @@ if [[ $1 != "-bash" ]]; then PRINT INFO "Rebuilding panel assets.." hide_progress cd "$FOLDER" || cdhalt + set -eo pipefail yarn run build:production --progress + set +eo pipefail ((PROGRESS_NOW++)) @@ -421,4 +426,4 @@ esac shift 2 Command "$@" -exit 0 +exit From dea4f1660e1a52da09012c88b833010aced02941 Mon Sep 17 00:00:00 2001 From: Loki <59907407+Loki-101@users.noreply.github.com> Date: Fri, 28 Nov 2025 16:19:11 -0800 Subject: [PATCH 2/2] Fix typo --- blueprint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blueprint.sh b/blueprint.sh index 2ef3b315..65f905fb 100644 --- a/blueprint.sh +++ b/blueprint.sh @@ -426,4 +426,4 @@ esac shift 2 Command "$@" -exit +exit 0