Skip to content

Update download #64

Merged
merged 2 commits into from
Nov 5, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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