From d3ace9acc14a624073a8d6419f2d1ce09534d9a0 Mon Sep 17 00:00:00 2001 From: Konstantinos Chatzilygeroudis Date: Mon, 26 Aug 2024 13:23:45 +0300 Subject: [PATCH] Make all scripts fail on error --- ci/install_dart_latest.sh | 2 ++ ci/install_magnum.sh | 2 ++ ci/install_packages.sh | 2 ++ scripts/install_osx.sh | 2 +- scripts/install_ubuntu.sh | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ci/install_dart_latest.sh b/ci/install_dart_latest.sh index b589f9b3..c4e40b4c 100755 --- a/ci/install_dart_latest.sh +++ b/ci/install_dart_latest.sh @@ -1,3 +1,5 @@ +set -e + # Select Compiler if [ "$COMPILER" = "gcc" ]; then export CC=/usr/bin/gcc && export CXX=/usr/bin/g++ diff --git a/ci/install_magnum.sh b/ci/install_magnum.sh index 9acb1b2d..3098b6fd 100755 --- a/ci/install_magnum.sh +++ b/ci/install_magnum.sh @@ -1,3 +1,5 @@ +set -e + # Select Compiler if [ "$COMPILER" = "gcc" ]; then export CC=/usr/bin/gcc && export CXX=/usr/bin/g++ diff --git a/ci/install_packages.sh b/ci/install_packages.sh index 450d39ea..df2f538a 100755 --- a/ci/install_packages.sh +++ b/ci/install_packages.sh @@ -1,3 +1,5 @@ +set -e + sudo apt-get -qq update sudo apt-get -y install software-properties-common mlocate sudo apt-add-repository -y ppa:dartsim/ppa diff --git a/scripts/install_osx.sh b/scripts/install_osx.sh index c3a37c42..edadf97d 100755 --- a/scripts/install_osx.sh +++ b/scripts/install_osx.sh @@ -1,4 +1,4 @@ -set -x +set -e CLEAN=0 diff --git a/scripts/install_ubuntu.sh b/scripts/install_ubuntu.sh index fa247e5b..bda58b6a 100755 --- a/scripts/install_ubuntu.sh +++ b/scripts/install_ubuntu.sh @@ -1,3 +1,5 @@ +set -e + CLEAN=0 CLEAN=${1:-$CLEAN}