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>
This commit is contained in:
Leah Rowe
2025-04-11 14:17:12 +01:00
parent edbbde0b12
commit 947c3e1a17
+2
View File
@@ -24,6 +24,8 @@ mode="all" # make all
main()
{
[ $# -lt 1 ] && $err "No argument provided"
while getopts f:b:m:u:c:x:s:l:n:d: option; do
[ -n "$_f" ] && $err "only one flag is permitted"
_f="$1"