fix: ignore unbound variables when sourcing .env in all backup/DR scripts
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m35s
All checks were successful
Deploy to Production / Build and Deploy (push) Successful in 2m35s
This commit is contained in:
@@ -25,7 +25,9 @@ PROJECT_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
|
||||
ENV_FILE="${PROJECT_ROOT}/.env"
|
||||
if [ -f "${ENV_FILE}" ]; then
|
||||
set -a
|
||||
set +u
|
||||
source "${ENV_FILE}"
|
||||
set -u
|
||||
set +a
|
||||
else
|
||||
echo "ERROR: .env introuvable : ${ENV_FILE}" >&2
|
||||
|
||||
Reference in New Issue
Block a user