sys-kernel/coreos-firmware: Add empty error message

Print an error message and abort if the list of firmware files to install
is empty.

Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
Geoff Levand 2015-08-14 11:12:40 -07:00
parent 9d33fdafd0
commit 982fdf26aa

View File

@ -115,6 +115,10 @@ src_prepare() {
}
src_install() {
local list=$(find -type f) || die
[[ -n "${list}" ]] || die "No firmware files found to install."
insinto /lib/firmware/
doins -r *
doins -r ${list}
}