From a64e2db5899540bfcfff417fc407befd9daf364f Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 27 Jun 2024 02:33:45 +0100 Subject: trees: call err if multiple flags are provided this script is designed to only run a single flag. Signed-off-by: Leah Rowe --- script/trees | 1 + 1 file changed, 1 insertion(+) (limited to 'script/trees') 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="" ;; -- cgit v1.2.1