From 3d6a03ffe007b5c1775501dd0936445a373e182a Mon Sep 17 00:00:00 2001 From: Rob Ballantyne Date: Sun, 17 Dec 2023 13:24:56 +0000 Subject: [PATCH] fix build init --- build/COPY_ROOT/opt/ai-dock/bin/build/layer0/init.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build/COPY_ROOT/opt/ai-dock/bin/build/layer0/init.sh b/build/COPY_ROOT/opt/ai-dock/bin/build/layer0/init.sh index cddd40b..d943313 100755 --- a/build/COPY_ROOT/opt/ai-dock/bin/build/layer0/init.sh +++ b/build/COPY_ROOT/opt/ai-dock/bin/build/layer0/init.sh @@ -1,5 +1,8 @@ #!/bin/bash +# Must exit and fail to build if any command fails +set -eo pipefail + source /opt/ai-dock/bin/build/layer0/common.sh if [[ "$XPU_TARGET" == "NVIDIA_GPU" ]]; then