[bknr-cvs] hans changed trunk/projects/bos/cert-daemon/cert-daemon.sh

BKNR Commits bknr at bknr.net
Sat Oct 18 12:18:09 UTC 2008


Revision: 4006
Author: hans
URL: http://bknr.net/trac/changeset/4006

"I forgot all i knew about shell programming" fixes

U   trunk/projects/bos/cert-daemon/cert-daemon.sh

Modified: trunk/projects/bos/cert-daemon/cert-daemon.sh
===================================================================
--- trunk/projects/bos/cert-daemon/cert-daemon.sh	2008-10-16 20:13:37 UTC (rev 4005)
+++ trunk/projects/bos/cert-daemon/cert-daemon.sh	2008-10-18 12:18:08 UTC (rev 4006)
@@ -23,7 +23,7 @@
 
     trap "rm -f $tmp1_file $tmp2_file $tmp3_file $tmp4_file" EXIT
 
-    if [ -f $print_fdf_file ]; then
+    if [ $language = de -a -f $print_fdf_file ]; then
         pdftk urkunde-print-$language.pdf fill_form $print_fdf_file output $tmp1_file flatten
         pdftk $tmp1_file cat 1 output $tmp2_file
         pdftk $tmp1_file cat 2 output $tmp3_file
@@ -42,7 +42,8 @@
 
 while true; do
     sleep 2
-    if [ -f download-spool/*-*.fdf ]; then
+    set download-spool/*-*.fdf
+    if [ -f $1 ]; then
         for job in download-spool/*-*.fdf
         do
           gen_certs `echo $job | perl -pe 's|.*-spool/(.*)-(.*).fdf|$1 $2|'`





More information about the Bknr-cvs mailing list