sync.sh: use gzip by default if available. Fix sendmail To: envelope

This commit is contained in:
2022-04-25 14:04:41 +02:00
parent 5a93fe6b47
commit 159e70d654

View File

@@ -383,6 +383,10 @@ log "Config : ${CONFIG}"
log "Src dir: ${SOURCEDIR}"
log "Dst dir: ${SERVER}:${DESTDIR}"
log "Actions: ${TODO[*]}"
log -n "Mail recipient: "
[[ -n $MAILTO ]] && log "$MAILTO" || log "<unset>"
# shellcheck disable=SC2015
log -n "Compression:" && [[ $ZIPMAIL = zip ]] && log "gzip" || log "none"
# check availability of necessary commands
declare -a cmdavail=()