From e91bce6325db962498fba7d0c01f131c4d970ca7 Mon Sep 17 00:00:00 2001 From: Alvin Schiller <103769832+AlvinSchiller@users.noreply.github.com> Date: Fri, 12 Jan 2024 20:28:01 +0100 Subject: [PATCH] make script return value more clear --- src/webapp/run_rebuild.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/webapp/run_rebuild.sh b/src/webapp/run_rebuild.sh index 063dcad2c..8b4b538e2 100755 --- a/src/webapp/run_rebuild.sh +++ b/src/webapp/run_rebuild.sh @@ -144,4 +144,7 @@ rm -rf "${build_output_folder}.bak" if [ -d "${build_output_folder}" ]; then mv -f "${build_output_folder}" "${build_output_folder}.bak" fi -npm run build +if ! npm run build ; then + echo "ERROR: rebuild of Web App failed!" + exit 1 +fi