summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKlaus Agnoletti <klaus@xenux.dk>2002-08-13 08:04:40 +0000
committerKlaus Agnoletti <klaus@xenux.dk>2002-08-13 08:04:40 +0000
commit3554370304f40b20a7fbb03144b168d0cf0a0ddc (patch)
treea434126b831f275edf66e1276ac07e26a0a2a453
parent6139077cfa1be70b3484b02cdc764bb64997145b (diff)
* An extra condition proved to be needed to ensure proper functionality when 'nobody' is prin ting.
-rwxr-xr-xpdfdistiller5
1 files changed, 4 insertions, 1 deletions
diff --git a/pdfdistiller b/pdfdistiller
index 3b1b494..c97b7dd 100755
--- a/pdfdistiller
+++ b/pdfdistiller
@@ -79,7 +79,10 @@ fi
# - world readable
# - owns to user specified in argument
chmod a+r $OUTPUTFILENAME
-if [ "$2" != "" ]; then
+
+#An extra argument in this statement proved to be needed to ensure that after entering
+#the previous if-statement (in case user is nobody) this if-statement isn't entered as well..
+if [ "$2" != "" -a $2 != "nobody" ]; then
if [ -x /usr/bin/mime-construct ]; then
/usr/bin/mime-construct --to "$2" --subject "PDF print" --type application/pdf --attachment `basename $OUTPUTFILENAME` --file $OUTPUTFILENAME \
&& rm $OUTPUTFILENAME