mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-15 22:31:59 +01:00
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:
parent
9d33fdafd0
commit
982fdf26aa
@ -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}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user