From e0b0949fa88c2f58ac60d79fd454f14a1c0b5f36 Mon Sep 17 00:00:00 2001 From: mtortonesi Date: Fri, 14 Jul 2006 06:08:29 -0700 Subject: [PATCH] [svn] Improved robustness of update_po_files.sh. --- util/update_po_files.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 -- 2.39.2