diff --git a/src/bash/filter.sh b/src/bash/filter.sh index 4f39144..b1dfcf5 100755 --- a/src/bash/filter.sh +++ b/src/bash/filter.sh @@ -72,7 +72,7 @@ ARCHIVE_MIME="text/kaz_email_archive" FILE_SKIP_DOMAINS="/tmp/docker-mailserver/file_domaines_non_depollues.txt" #on enlève les commentaires et les lignes vides -SKIP_DOMAINS=`grep -Ev '^#|^[[:space:]]*$' $FILE_SKIP_DOMAINS` +SKIP_DOMAINS=$(grep -Ev '^#|^[[:space:]]*$' $FILE_SKIP_DOMAINS 2>/dev/null) KEEP_FAILED=true DEBUG=true @@ -224,7 +224,7 @@ mkdir -p "${REP_PIECE_JOINTE}/" >"${OLD_LINKS}" >"${ARCHIVE_CONTENT}" -if [ "${MODE}" = "none"]; then +if [ "${MODE}" = "none" ]; then LOG_FIC " - ${GREEN}send without change (MODE=none)${NC}" ${SENDMAIL} "$@" < "${INSPECT_DIR}/in.$$" quitFilter 0