From 0c1d08d8b1c5757ca10487fb3256741718009ac1 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Wed, 27 Dec 2023 17:20:55 +0000 Subject: build/serprog: err if basename fails Signed-off-by: Leah Rowe --- script/build/serprog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script') 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 $@ -- cgit v1.2.1