fix logic bug
authorIan Kelling <iank@fsf.org>
Fri, 17 Sep 2021 20:24:11 +0000 (16:24 -0400)
committerIan Kelling <iank@fsf.org>
Fri, 17 Sep 2021 20:24:11 +0000 (16:24 -0400)
logmail

diff --git a/logmail b/logmail
index 00b6b0a82f6e817a700435f6bd9393c3ae625341..794615b6c9d0174d25195a5083d303be095ff148 100755 (executable)
--- 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