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}"