From 15a4d8a6b35f3c0a57b308ca4eda60c29cd3458c Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Tue, 26 Nov 2024 11:32:24 -0800 Subject: [PATCH] fail run_demo script if any of the command fail to execute --- demos/hr_agent/run_demo.sh | 1 + demos/insurance_agent/run_demo.sh | 1 + demos/network_agent/run_demo.sh | 1 + demos/weather_forecast/run_demo.sh | 1 + demos/weather_forecast_signoz/run_demo.sh | 1 + 5 files changed, 5 insertions(+) diff --git a/demos/hr_agent/run_demo.sh b/demos/hr_agent/run_demo.sh index fc32430c..2b5dc264 100644 --- a/demos/hr_agent/run_demo.sh +++ b/demos/hr_agent/run_demo.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e # Function to start the demo start_demo() { diff --git a/demos/insurance_agent/run_demo.sh b/demos/insurance_agent/run_demo.sh index f6097b09..e6c678e8 100644 --- a/demos/insurance_agent/run_demo.sh +++ b/demos/insurance_agent/run_demo.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e # Function to start the demo start_demo() { diff --git a/demos/network_agent/run_demo.sh b/demos/network_agent/run_demo.sh index f6097b09..e6c678e8 100644 --- a/demos/network_agent/run_demo.sh +++ b/demos/network_agent/run_demo.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e # Function to start the demo start_demo() { diff --git a/demos/weather_forecast/run_demo.sh b/demos/weather_forecast/run_demo.sh index f6097b09..e6c678e8 100644 --- a/demos/weather_forecast/run_demo.sh +++ b/demos/weather_forecast/run_demo.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e # Function to start the demo start_demo() { diff --git a/demos/weather_forecast_signoz/run_demo.sh b/demos/weather_forecast_signoz/run_demo.sh index f6097b09..e6c678e8 100644 --- a/demos/weather_forecast_signoz/run_demo.sh +++ b/demos/weather_forecast_signoz/run_demo.sh @@ -1,4 +1,5 @@ #!/bin/bash +set -e # Function to start the demo start_demo() {