commit 4a82f874bc060179ed1d7ac98e7b9da566b0bdf8
parent 2818449d35598c1337c44ee1a9c976b6dc5a9f3e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Thu, 25 Apr 2019 14:45:00 +0200
Remove diagnostic output
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/.mutt/muttprint-groff.sh b/.mutt/muttprint-groff.sh
@@ -3,7 +3,7 @@
PDIR="$HOME/tmp"
mkdir -p "$PDIR" 2>/dev/null
-rm -f "$PDIR"/mutt_*
+#rm -f "$PDIR"/mutt_*
infile="$(mktemp "$PDIR"/mutt_XXXXXXXX.txt)"
tmpfile="$(mktemp "$PDIR"/mutt_XXXXXXXX.roff)"
@@ -53,8 +53,7 @@ mail_subject="$(grep '^Subject: ' "$infile")"
echo "running groff $tmpfile $outfile"
preconv "$tmpfile" | groff -ms -T pdf > "$outfile"
-cat "$tmpfile"
xdg-open "$outfile" &
sleep 1
-#rm "$infile" "$tmpfile" "$outfile"
+rm "$infile" "$tmpfile" "$outfile"