cvs: phpweb /bin update-mirrors
| From: | Jim Winstead | Date: | Wed, 19 Sep 2001 18:10:31 +0000 |
| Subject: | cvs: phpweb /bin update-mirrors | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-6451@lists.php.net to get a copy of this message | ||
jimw Wed Sep 19 14:10:31 2001 EDT
Modified files:
/phpweb/bin update-mirrors
Log:
protect against empty mirrors list
Index: phpweb/bin/update-mirrors
diff -u phpweb/bin/update-mirrors:1.1 phpweb/bin/update-mirrors:1.2
--- phpweb/bin/update-mirrors:1.1 Fri Jul 6 20:12:53 2001
+++ phpweb/bin/update-mirrors Wed Sep 19 14:10:31 2001
@@ -1,7 +1,8 @@
#!/bin/sh
lynx -source http://www.php.net/bin/mirrors.php
> include/mirrors.inc~
-if [ $? -ne 0 ]; then
+if [ $? -ne 0 -a ! -s include/mirrors.inc~ ]; then
+ rm -f include/mirrors.inc~
echo problem converting results to html
exit 1
fi