summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-27 02:33:45 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-27 02:33:45 +0100
commita64e2db5899540bfcfff417fc407befd9daf364f (patch)
tree034bf18c7f15783fe09192c4a40361637fc3dbdc /script
parent0e97e98fe16baa2ac1c8b17bd054fd697e22f956 (diff)
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>
Diffstat (limited to 'script')
-rwxr-xr-xscript/trees1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/trees b/script/trees
index c3391f58..38674759 100755
--- a/script/trees
+++ b/script/trees
@@ -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="" ;;