iankelling.org
/
git
/
log-quiet
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f7ce3c
)
fix logic bug
author
Ian Kelling
<iank@fsf.org>
Fri, 17 Sep 2021 20:24:11 +0000
(16:24 -0400)
committer
Ian Kelling
<iank@fsf.org>
Fri, 17 Sep 2021 20:24:11 +0000
(16:24 -0400)
logmail
patch
|
blob
|
history
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