add automatic trace mode if TRACE=1

This commit is contained in:
Jérémy Lecour 2024-01-09 08:47:18 +01:00 committed by Jérémy Lecour
parent a5ff9199b3
commit 7a9663781d
Signed by: jlecour
SSH key fingerprint: SHA256:h+5LgHRKwN9lS0SsdVR5yZPeFlJE4Mt+8UtL4CcP8dY

View file

@ -12,6 +12,10 @@ set -o nounset
# The pipeline's return status is the value of the last (rightmost) command
# to exit with a non-zero status, or zero if all commands exit successfully.
set -o pipefail
# Enable trace mode if called with environment variable TRACE=1
if [[ "${TRACE-0}" == "1" ]]; then
set -o xtrace
fi
source "${LIBDIR}/utilities.sh"
source "${LIBDIR}/dump-mysql.sh"