Bug 10127 : Printoverdues.sh should tar only pdf files

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>

From the bug report:
At the end of printoverdues.sh, an archive is generated
containing all files present in  directory given as parameter.
As archives are generated in this given directory, they
contain previously generated tar files, creating oversized files.
Only .pdf files should be archived

All tests and QA script pass.
Worked ok in my tests, only packign PDF in the given directory.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 261c6f39fa)
Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
(cherry picked from commit 261c6f39fa)
Signed-off-by: Chris Hall <followingthepath@gmail.com>
(cherry picked from commit b5afa66694)
This commit is contained in:
Sophie Meynieux 2013-04-26 15:06:40 +02:00 committed by Chris Hall
parent cd514fad12
commit c82ece8524
1 changed files with 1 additions and 1 deletions

View File

@ -47,4 +47,4 @@ then
lp $optprinter $1/*.pdf;
fi
tar cvfz $1`date "+%Y%m%d"`.tar.gz $1;
tar cvfzP $1`date "+%Y%m%d"`.tar.gz $1/*.pdf;