From 150f2fb520f87b97c3aa4f1146e7cf7299c80cb1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Elan=20Ruusam=C3=A4e?= Date: Wed, 29 Aug 2012 00:56:20 +0300 Subject: [PATCH] do not try forever (1 try 10s timeout) --- update-channels.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 update-channels.sh diff --git a/update-channels.sh b/update-channels.sh old mode 100644 new mode 100755 index 325df37..0c33965 --- a/update-channels.sh +++ b/update-channels.sh @@ -17,7 +17,7 @@ channels=" " for channel in $channels; do url=http://$channel/channel.xml - wget -q -O tmp.xml $url || continue + wget -q --timeout=10 --tries=1 -O tmp.xml $url || continue alias=$(sed -nre 's,.*(.+).*$,\1,p' tmp.xml) mv -f tmp.xml channel-$alias.xml done -- 2.44.0