~ salmonella-environment-setup (master) 64d8794b7be98092adb909c9b53b575a5649110e
commit 64d8794b7be98092adb909c9b53b575a5649110e
Author: Mario Domenech Goulart <mario@parenteses.org>
AuthorDate: Thu Nov 16 22:25:35 2023 +0100
Commit: Mario Domenech Goulart <mario@parenteses.org>
CommitDate: Thu Nov 16 22:25:37 2023 +0100
run-salmonella.sh: Add debug mode
Set RUN_SALMONELLA_DEBUG to activate the debug mode.
diff --git a/run-salmonella.sh b/run-salmonella.sh
index 3d68b5d..79f5426 100755
--- a/run-salmonella.sh
+++ b/run-salmonella.sh
@@ -1,5 +1,7 @@
#! /bin/sh
+[ -n "$RUN_SALMONELLA_DEBUG" ] && set -x
+
ROOT_DIR=$(readlink -f "$(dirname "$0")")
SRC_CONF_DIR=$ROOT_DIR/conf
HOOKS_DIR=$ROOT_DIR/hooks
@@ -39,6 +41,9 @@ in that order.
If the environment variable CHICKEN_CORE_COMMIT_HASH is set, it is
going to be passed to salmonella-run-publish.
+
+If the environment variable RUN_SALMONELLA_DEBUG is set, this script
+will be executed in debug mode (set -x).
EOF
}
Trap