mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 05:57:52 +00:00
only perform the updates if the fetch succeeds
This commit is contained in:
parent
6125833e82
commit
9213ea3cec
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user