summaryrefslogtreecommitdiff
path: root/script/build
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-12-27 17:20:55 +0000
committerLeah Rowe <leah@libreboot.org>2023-12-27 17:20:55 +0000
commit0c1d08d8b1c5757ca10487fb3256741718009ac1 (patch)
tree5ae95ce18e5c279a5d39d77a981d20dc4e812740 /script/build
parenteff9130b7ab9ce79338ae6b1ec5c2f18bad5b5ec (diff)
build/serprog: err if basename fails
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build')
-rwxr-xr-xscript/build/serprog2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/build/serprog b/script/build/serprog
index 28cd70a4..8b003add 100755
--- a/script/build/serprog
+++ b/script/build/serprog
@@ -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 $@