From f30292fd9c557e6056218e05c27724834ea94765 Mon Sep 17 00:00:00 2001 From: Iheb Agrebi <101937924+Iheb-AG@users.noreply.github.com> Date: Mon, 11 May 2026 18:24:50 +0100 Subject: [PATCH] fix: ensure build stops if prepare_vscode fails Add error handling for preparation step in build script --- build.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.sh b/build.sh index 84a75bc1711..77cef9414ff 100755 --- a/build.sh +++ b/build.sh @@ -9,6 +9,10 @@ if [[ "${SHOULD_BUILD}" == "yes" ]]; then echo "MS_COMMIT=\"${MS_COMMIT}\"" . prepare_vscode.sh + if [ $? -ne 0 ]; then + echo "Preparation failed. Build aborted." + exit 1 + fi cd vscode || { echo "'vscode' dir not found"; exit 1; }