From b153d8433035f8455150706e2bd67618f8d8d97d Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Fri, 23 Aug 2019 11:23:55 +0200 Subject: [PATCH] fix issue #34 bail out on download fail --- src/beesh.sh.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/beesh.sh.in b/src/beesh.sh.in index 2ffc12e..643519a 100644 --- a/src/beesh.sh.in +++ b/src/beesh.sh.in @@ -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}"