X-Git-Url: https://iankelling.org/git/?p=log-quiet;a=blobdiff_plain;f=logmail;fp=logmail;h=794615b6c9d0174d25195a5083d303be095ff148;hp=00b6b0a82f6e817a700435f6bd9393c3ae625341;hb=0025a0904ad317a102b2e94262a4b01942f13d52;hpb=7f7ce3ccf4269622c5e40556ef8b3b1e9b07ab47 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