From: mtortonesi Date: Fri, 14 Jul 2006 13:08:29 +0000 (-0700) Subject: [svn] Improved robustness of update_po_files.sh. X-Git-Tag: v1.13~636 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=e0b0949fa88c2f58ac60d79fd454f14a1c0b5f36 [svn] Improved robustness of update_po_files.sh. --- diff --git a/util/update_po_files.sh b/util/update_po_files.sh index 80b3e6f0..4ae3b8b4 100755 --- a/util/update_po_files.sh +++ b/util/update_po_files.sh @@ -1,7 +1,13 @@ #!/bin/bash -#cd po for i in *.po do - wget http://www.iro.umontreal.ca/translation/maint/wget/$i -O $i + mv $i $i.old + + wget http://www.iro.umontreal.ca/translation/maint/wget/$i + + if test -f $i + then + rm -f $i.old + fi done