mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-07-10 09:24:50 +02:00
Only calculate checksums, when there are files to monitor. (#2776)
This commit is contained in:
parent
6113b99881
commit
1f137f3eca
2 changed files with 5 additions and 5 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue