From b3853c9243e8f114ea4c1f00f58cfa2cecb9ad51 Mon Sep 17 00:00:00 2001 From: Matthias Ruester Date: Thu, 18 Apr 2013 10:52:46 +0200 Subject: [PATCH] beesh: add timeout and try count to wget call If wget could not establish a connection within 1 minute we will exit and not try to download the file again. --- src/beesh.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/beesh.sh.in b/src/beesh.sh.in index fcc8876..d33ee67 100644 --- a/src/beesh.sh.in +++ b/src/beesh.sh.in @@ -283,6 +283,8 @@ function fetch_one_file() { ${nocheck} \ --output-document="${F}/${file}" \ --no-clobber \ + --timeout=60 \ + --tries=1 \ "${url}" || true trap - EXIT