diff --git a/src/beesh.sh.in b/src/beesh.sh.in index 8a23688..b8fadf4 100644 --- a/src/beesh.sh.in +++ b/src/beesh.sh.in @@ -282,14 +282,15 @@ function fetch_one_file() { --output-document="${F}/${file}.tmp" \ --timeout=60 \ --tries=1 \ + "${BEE_WGET_OPTS[@]}" \ "${url}" - ls -ld "${F}/${file}.tmp" if [ ! -s "${F}/${file}.tmp" ] ; then print_error "ERROR: ${F}/${file}.tmp is empty, download failed." rm "${F}/${file}.tmp" exit 1 fi mv "${F}/${file}.tmp" "${F}/${file}" + ls -ld "${F}/${file}" fi fi