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>
audit2
Leah Rowe 2024-06-27 02:33:45 +01:00 committed by Leah Rowe
parent ebebb5a57e
commit c56531af40
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="" ;;