summaryrefslogtreecommitdiff
path: root/pdfdistiller
diff options
context:
space:
mode:
Diffstat (limited to 'pdfdistiller')
-rwxr-xr-xpdfdistiller2
1 files changed, 2 insertions, 0 deletions
diff --git a/pdfdistiller b/pdfdistiller
index 6c13286..355e90e 100755
--- a/pdfdistiller
+++ b/pdfdistiller
@@ -75,8 +75,10 @@ chmod a+r $OUTPUTFILENAME
if [ "$2" != "" ]; then
if [ -x /usr/bin/mime-construct ]; then
/usr/bin/mime-construct --to "$2" --subject "PDF print" --type application/pdf --file $OUTPUTFILENAME
+ rm $OUTPUTFILENAME
elif [ -x /usr/bin/mimeit ]; then
cat $OUTPUTFILENAME | /usr/bin/mimeit application/pdf $2 "PDF print"
+ rm $OUTPUTFILENAME
else
chown $2 $OUTPUTFILENAME
fi