diff options
-rwxr-xr-x | pdfdistiller | 5 |
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 |