[libvirt PATCH 15/20] ci: build.sh: Make the build script fail ASAP with 'set -e'

Erik Skultety eskultet at redhat.com
Mon Feb 6 13:53:12 UTC 2023


This is the default setting in GitLab container environments and it
makes sense to stop executing the script with the first error
encountered.

Signed-off-by: Erik Skultety <eskultet at redhat.com>
---
 ci/build.sh | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ci/build.sh b/ci/build.sh
index 4d7ef810f2..b6596300be 100644
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -69,6 +69,7 @@ run_website_build() {
 
 main() {
     ACTIONS=""
+    set -e
 
     while [ "$#" -ne 0 ]
     do
-- 
2.39.1



More information about the libvir-list mailing list