]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
only perform the updates if the fetch succeeds
authorMark Andrews <marka@isc.org>
Mon, 9 Sep 2002 13:10:20 +0000 (13:10 +0000)
committerMark Andrews <marka@isc.org>
Mon, 9 Sep 2002 13:10:20 +0000 (13:10 +0000)
doc/draft/update

index eaa324a5a0e1ed550b72bb2adc63fc84fc6c9299..eebc7372eac641236978d3b4814001989a4ef4b8 100644 (file)
@@ -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