Bugzilla – Attachment 5269 Details for
Bug 6048
printoverdues.sh bash odities
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 6048: printoverdues.sh bash odities
Bug-6048-printoverduessh-bash-odities.patch (text/plain), 1.27 KB, created by
Robin Sheat
on 2011-09-02 03:26:28 UTC
(
hide
)
Description:
Bug 6048: printoverdues.sh bash odities
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2011-09-02 03:26:28 UTC
Size:
1.27 KB
patch
obsolete
>From dc40bfcc849fc047d841407a1a5980862d8aba71 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Thu, 7 Apr 2011 17:08:48 +0200 >Subject: [PATCH] Bug 6048: printoverdues.sh bash odities > >Signed-off-by: Robin Sheat <robin@catalyst.net.nz> > >Note: this script really needs a rewrite, but this patch does fix up the >things it's supposed to fix up. >--- > misc/cronjobs/printoverdues.sh | 18 +++++++++++------- > 1 files changed, 11 insertions(+), 7 deletions(-) > >diff --git a/misc/cronjobs/printoverdues.sh b/misc/cronjobs/printoverdues.sh >index 99bb878..51bb30f 100755 >--- a/misc/cronjobs/printoverdues.sh >+++ b/misc/cronjobs/printoverdues.sh >@@ -27,20 +27,24 @@ then > fi > if [[ -n $2 && -f $2 ]] > then >- set $optpisa "--css $2"; >+ optpisa="--css $2"; > fi > if [[ -n $3 ]] > then >- set $optprinter "-h $3"; >+ optprinter="-h $3"; > fi > if [[ -n $4 ]] > then >- set $optprinter "$optprinter -d $4"; >+ optprinter="$optprinter -d $4"; > fi > for i in $1/*.html > do >- xhtml2pdf $optpisa $i >+ xhtml2pdf $optpisa $i; > done >-lp $optprinter $1/*.pdf >-tar cvfz $directory`date "+%Y%m%d"`.tar.gz $directory >-rm -rf $directory >+ >+if [[ -n $optprinter ]] >+then >+ lp $optprinter $1/*.pdf; >+fi >+ >+tar cvfz $directory`date "+%Y%m%d"`.tar.gz $directory; >-- >1.7.4.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 6048
:
3632
|
3810
| 5269