Skip to content

Commit

Permalink
beesh: exit if image directory is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Ruester committed Mar 18, 2012
1 parent 58f2579 commit 79b0789
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 @@ -373,6 +373,11 @@ function bee_pkg_pack() {

beefind.pl --dump ${D}/FILES | sed -e "s,^,${D}," - > ${DUMP}

if [ ! -s "${D}/FILES" ]; then
print_error "ERROR: empty image directory"
exit 1
fi

cp ${BEE} ${D}/BUILD

create_meta
Expand Down

0 comments on commit 79b0789

Please sign in to comment.