From a40b808598bc7632fae3905d0425e2ca56fb3e84 Mon Sep 17 00:00:00 2001 From: Olivier DOSSMANN Date: Sat, 4 Aug 2018 22:21:18 +0200 Subject: [PATCH] Attempt to exit script if any error in .gitlab-ci.yml --- install-and-chroot.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-and-chroot.sh b/install-and-chroot.sh index a591299..2c276d2 100755 --- a/install-and-chroot.sh +++ b/install-and-chroot.sh @@ -37,7 +37,7 @@ fi sudo sed -e 's/#rc_sys=""/rc_sys="prefix"/g' -i "$DIR/etc/rc.conf" # Launch chroot -sh $DIR/enter-chroot ./build +bash $DIR/enter-chroot ./build || exit 1 # Insert pkg++ configuration in chroot sudo mkdir -p "$DIR/opt/pkgxx/dev" && \