diff --git a/target/scripts/helpers/change-detection.sh b/target/scripts/helpers/change-detection.sh index 9df22364..28817390 100644 --- a/target/scripts/helpers/change-detection.sh +++ b/target/scripts/helpers/change-detection.sh @@ -73,5 +73,9 @@ function _monitored_files_checksums do [[ -f "${FILE}" ]] && CHANGED_FILES+=("${FILE}") done - sha512sum -- "${CHANGED_FILES[@]}" + + if [[ -n ${CHANGED_FILES:-} ]] + then + sha512sum -- "${CHANGED_FILES[@]}" + fi } diff --git a/test/mail_smtponly.bats b/test/mail_smtponly.bats index 2d129333..ecdb2625 100644 --- a/test/mail_smtponly.bats +++ b/test/mail_smtponly.bats @@ -1,11 +1,7 @@ load 'test_helper/common' function setup_file() { - local PRIVATE_CONFIG - PRIVATE_CONFIG=$(duplicate_config_for_container .) - docker run --rm -d --name mail_smtponly \ - -v "${PRIVATE_CONFIG}":/tmp/docker-mailserver \ -v "$(pwd)/test/test-files":/tmp/docker-mailserver-test:ro \ -e SMTP_ONLY=1 \ -e PERMIT_DOCKER=network \