From f63a62a9ae726155d06b2ca2fc2b576a1dd11289 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Sun, 10 Mar 2024 20:21:28 -0400 Subject: [PATCH] bug fix: prints dry statement when not in dry run --- sysd-mail-once | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sysd-mail-once b/sysd-mail-once index c5cd8c8..659fa92 100755 --- a/sysd-mail-once +++ b/sysd-mail-once @@ -96,18 +96,18 @@ mi() { fi } e() { - printf "dryrun: %s\n" "$*" + if $dryrun; then + printf "dryrun: %s\n" "$*" + fi } c=$cbase/$service # c for command file path base -if $dryrun; then - e "c=$c" -fi +e "c=$c" glob="${c}[0-9]*" arr=($glob); file="${arr[0]}"; [[ $glob != "$file" ]] || file= -if [[ $dryrun && $file ]]; then +if [[ $file ]]; then e "file=$file" fi -- 2.30.2