Skip to content

Commit

Permalink
Merge pull request #64 from mariux64/update-download
Browse files Browse the repository at this point in the history
Update download
  • Loading branch information
donald authored Nov 5, 2024
2 parents f9b1a92 + a33bbcb commit 7dec8d4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7dec8d4

Please sign in to comment.