From 947c3e1a1766eb67d07a4d529fc20269ad71bee3 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Fri, 11 Apr 2025 14:17:12 +0100 Subject: 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 --- script/trees | 2 ++ 1 file changed, 2 insertions(+) (limited to 'script/trees') diff --git a/script/trees b/script/trees index 306f189f..f224f94f 100755 --- a/script/trees +++ b/script/trees @@ -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" -- cgit v1.2.1