From 3d5961768e1be251fd88b1142feff9b871200e71 Mon Sep 17 00:00:00 2001 From: Frank Brehm Date: Tue, 15 Feb 2022 11:48:58 +0100 Subject: [PATCH] Fixing debug output in migrating sieve --- migrate-sieve | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/migrate-sieve b/migrate-sieve index b1e9277..ceaf0d0 100755 --- a/migrate-sieve +++ b/migrate-sieve @@ -7,7 +7,7 @@ VERBOSE="n" DEBUG="n" QUIET='n' SIMULATE='n' -FORCE="y" +FORCE="n" VERSION="4.1" @@ -632,7 +632,11 @@ migrate_entry() { info "Compiling '${CYAN}${dovecot_sieve_file}${NORMAL}' ..." debug "Executing: sievec \"${dovecot_sieve_file}\" || true" if [[ "${SIMULATE}" != "y" ]] ; then - sievec "${dovecot_sieve_file}" 2>&1 | grep -viw debug || true + if [[ "${VERBOSE}" == "y" ]] ; then + sievec "${dovecot_sieve_file}" || true + else + sievec "${dovecot_sieve_file}" 2>&1 | grep -viw debug || true + fi fi if [[ -f "${compiled_sieve}" ]] ; then CHOWN "${VMAIL_USER}:${VMAIL_GROUP}" "${compiled_sieve}" -- 2.39.5