From: Ian Kelling Date: Fri, 17 Sep 2021 20:24:11 +0000 (-0400) Subject: fix logic bug X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=0025a0904ad317a102b2e94262a4b01942f13d52;p=log-quiet fix logic bug --- diff --git a/logmail b/logmail index 00b6b0a..794615b 100755 --- a/logmail +++ b/logmail @@ -26,7 +26,7 @@ EOF ;; esac t=$(mktemp) -if ! "$@" &>"$t" || [[ ! -s $t ]]; then +if ! "$@" &>"$t" || [[ -s $t ]]; then mail -s "$HOSTNAME: $*" $mailto <"$t" rm "$t" fi