build/serprog: err if basename fails

Signed-off-by: Leah Rowe <leah@libreboot.org>
9020vga
Leah Rowe 2023-12-27 17:20:55 +00:00
parent eff9130b7a
commit 0c1d08d8b1
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ print_boards()
list_boards()
{
basename -a -s .h "${1}/"*.h
basename -a -s .h "${1}/"*.h || err "list_boards $1: can't list boards"
}
main $@