trees: err if no argument given

We were already covering this from the main build
script, but it's good to also check it here.

Signed-off-by: Leah Rowe <leah@libreboot.org>
25.04_branch
Leah Rowe 2025-04-11 14:17:12 +01:00
parent aa306663c3
commit c2ddb7cc1f
1 changed files with 2 additions and 0 deletions

View File

@ -24,6 +24,8 @@ mode="all" # make all
main() main()
{ {
[ $# -lt 1 ] && $err "No argument provided"
while getopts f:b:m:u:c:x:s:l:n:d: option; do while getopts f:b:m:u:c:x:s:l:n:d: option; do
[ -n "$_f" ] && $err "only one flag is permitted" [ -n "$_f" ] && $err "only one flag is permitted"
_f="$1" _f="$1"