mirror of
https://github.com/docker-mailserver/docker-mailserver.git
synced 2025-08-02 00:54:54 +02:00
Change 'for' style (#3368)
This commit is contained in:
parent
8512dba8ad
commit
8bfe8424fc
26 changed files with 43 additions and 86 deletions
|
@ -64,8 +64,7 @@ function _monitored_files_checksums() {
|
|||
|
||||
# If the file actually exists, add to CHANGED_FILES
|
||||
# and generate a content hash entry:
|
||||
for FILE in "${STAGING_FILES[@]}"
|
||||
do
|
||||
for FILE in "${STAGING_FILES[@]}"; do
|
||||
[[ -f "${FILE}" ]] && CHANGED_FILES+=("${FILE}")
|
||||
done
|
||||
|
||||
|
|
|
@ -26,8 +26,7 @@ function _sanitize_ipv4_to_subnet_cidr() {
|
|||
declare -a MASKED_DIGITS DIGITS
|
||||
IFS='.' ; read -r -a DIGITS < <(echo "${1%%/*}") ; unset IFS
|
||||
|
||||
for ((i = 0 ; i < 4 ; i++))
|
||||
do
|
||||
for ((i = 0 ; i < 4 ; i++)); do
|
||||
MASKED_DIGITS[i]=$(_mask_ip_digit "${DIGIT_PREFIX_LENGTH}" "${DIGITS[i]}")
|
||||
DIGIT_PREFIX_LENGTH=$((DIGIT_PREFIX_LENGTH - 8))
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue