From 159e70d65443084c20b56375a88251673bee0566 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Mon, 25 Apr 2022 14:04:41 +0200 Subject: [PATCH] sync.sh: use gzip by default if available. Fix sendmail To: envelope --- bash/sync.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash/sync.sh b/bash/sync.sh index 1a8b29f..6499202 100755 --- a/bash/sync.sh +++ b/bash/sync.sh @@ -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 "" +# shellcheck disable=SC2015 +log -n "Compression:" && [[ $ZIPMAIL = zip ]] && log "gzip" || log "none" # check availability of necessary commands declare -a cmdavail=()