From dc65e466fdcbd46e04f582347b925b8396f802de Mon Sep 17 00:00:00 2001 From: Mario Pareja Date: Wed, 30 Nov 2022 20:44:57 -0500 Subject: [PATCH 1/2] scripts: correct error propagation and script termination --- import-database-directory.sh | 2 +- package.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/import-database-directory.sh b/import-database-directory.sh index 5e62c75..9a655ae 100755 --- a/import-database-directory.sh +++ b/import-database-directory.sh @@ -8,7 +8,7 @@ echo "= = =" if [ -z ${MESSAGE_DB_HOME+x} ]; then echo "MESSAGE_DB_HOME is not set" - exit + exit 1 fi default_database_source="$MESSAGE_DB_HOME/message-db/database" diff --git a/package.sh b/package.sh index d65e30d..d980f8c 100755 --- a/package.sh +++ b/package.sh @@ -1,5 +1,7 @@ #!/usr/bin/env bash +set -e + ./clean.sh ./import-database-scripts.sh npm pack From ee692abd37e7e587a62dd166cb7d0da1fe46ec67 Mon Sep 17 00:00:00 2001 From: Mario Pareja Date: Wed, 30 Nov 2022 20:45:07 -0500 Subject: [PATCH 2/2] package.sh: correct script name reference --- package.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.sh b/package.sh index d980f8c..fa4cc03 100755 --- a/package.sh +++ b/package.sh @@ -3,5 +3,5 @@ set -e ./clean.sh -./import-database-scripts.sh +./import-database-directory.sh npm pack