From 9213ea3cec20ddb6a305f4d877b75eaa8100c02d Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Mon, 9 Sep 2002 13:10:20 +0000 Subject: [PATCH] only perform the updates if the fetch succeeds --- doc/draft/update | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/doc/draft/update b/doc/draft/update index eaa324a5a0..eebc7372ea 100644 --- a/doc/draft/update +++ b/doc/draft/update @@ -7,14 +7,16 @@ do fi pat=`echo "$i" | sed 's/...txt/??.txt/'` old=`echo $pat 2> /dev/null` - fetch "http://www.ietf.org/internet-drafts/$i" - cvs add "$1" - if test "X$old" != "X$pat" + if fetch "http://www.ietf.org/internet-drafts/$i" then - rm $old - cvs delete $old - else - old= + cvs add "$1" + if test "X$old" != "X$pat" + then + rm $old + cvs delete $old + else + old= + fi + cvs commit -m "new draft" $i $old fi - cvs commit -m "new draft" $i $old done