From: Mark Andrews Date: Mon, 9 Sep 2002 13:10:20 +0000 (+0000) Subject: only perform the updates if the fetch succeeds X-Git-Tag: v9.2.3rc1~104^2~344 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=9213ea3cec20ddb6a305f4d877b75eaa8100c02d;p=thirdparty%2Fbind9.git only perform the updates if the fetch succeeds --- diff --git a/doc/draft/update b/doc/draft/update index eaa324a5a0e..eebc7372eac 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