Skip to content

Commit

Permalink
fix issue #34
Browse files Browse the repository at this point in the history
bail out on download fail
  • Loading branch information
wwwutz committed Aug 23, 2019
1 parent c9ebf53 commit b153d84
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -291,6 +291,11 @@ function fetch_one_file() {
trap - EXIT

ls -ld "${F}/${file}"

if [ ! -s "${F}/${file}" ] ; then
print_error "ERROR: ${F}/${file} is empty, download failed."
exit 1
fi
fi

bee_FETCHED_FILE="${F}/${file}"
Expand Down

0 comments on commit b153d84

Please sign in to comment.