mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 14:35:26 +00:00
only perform the updates if the fetch succeeds
This commit is contained in:
@@ -7,14 +7,16 @@ do
|
|||||||
fi
|
fi
|
||||||
pat=`echo "$i" | sed 's/...txt/??.txt/'`
|
pat=`echo "$i" | sed 's/...txt/??.txt/'`
|
||||||
old=`echo $pat 2> /dev/null`
|
old=`echo $pat 2> /dev/null`
|
||||||
fetch "http://www.ietf.org/internet-drafts/$i"
|
if fetch "http://www.ietf.org/internet-drafts/$i"
|
||||||
cvs add "$1"
|
|
||||||
if test "X$old" != "X$pat"
|
|
||||||
then
|
then
|
||||||
rm $old
|
cvs add "$1"
|
||||||
cvs delete $old
|
if test "X$old" != "X$pat"
|
||||||
else
|
then
|
||||||
old=
|
rm $old
|
||||||
|
cvs delete $old
|
||||||
|
else
|
||||||
|
old=
|
||||||
|
fi
|
||||||
|
cvs commit -m "new draft" $i $old
|
||||||
fi
|
fi
|
||||||
cvs commit -m "new draft" $i $old
|
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user