Skip to content

Commit

Permalink
beesh: add timeout and try count to wget call
Browse files Browse the repository at this point in the history
If wget could not establish a connection within 1 minute we will exit
and not try to download the file again.
  • Loading branch information
Matthias Ruester authored and mariux committed Jun 2, 2015
1 parent 046bbee commit b3853c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,8 @@ function fetch_one_file() {
${nocheck} \
--output-document="${F}/${file}" \
--no-clobber \
--timeout=60 \
--tries=1 \
"${url}" || true

trap - EXIT
Expand Down

0 comments on commit b3853c9

Please sign in to comment.