trees: call err if multiple flags are provided

this script is designed to only run a single flag.

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit6
Leah Rowe 2024-06-27 02:33:45 +01:00
parent 0e97e98fe1
commit a64e2db589
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ eval `setvars "" xarch cdir config config_name xlang mode makeargs \
main()
{
while getopts f:b:m:u:c:x:s:l:n: option; do
[ -n "$_f" ] && $err "only one flag is permitted"
_f="$1"
case "$1" in
-b) mode="" ;;