From 0c5b0f0ab1cc420afc629c5f9d8f8d7dd1667178 Mon Sep 17 00:00:00 2001 From: Victor Seva Date: Thu, 24 Jun 2021 18:42:48 +0200 Subject: [PATCH] TT#116103 bin/provide_scenario.sh: fail if any command fails Change-Id: Ie82a4913e9fdaf9819a0b4e763bbb9c028f95577 --- bin/provide_scenario.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/provide_scenario.sh b/bin/provide_scenario.sh index a6160ca2..4cfd49e9 100755 --- a/bin/provide_scenario.sh +++ b/bin/provide_scenario.sh @@ -18,6 +18,7 @@ # On Debian systems, the complete text of the GNU General # Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". # +set -e # shellcheck disable=SC2155 declare -r ME="$(basename "$0")" BASE_DIR="${BASE_DIR:-/usr/share/kamailio-config-tests}" @@ -233,7 +234,7 @@ scenario_csv() { create() { local DOMAIN=$1 - delete "${DOMAIN}" # just to be sure nothing is there + delete "${DOMAIN}" || true # just to be sure nothing is there scenario_csv "${DOMAIN}" echo "$(date) - Creating ${DOMAIN}" create_voip "${DOMAIN}"