From ad74b4c2819a445831d48ba21529e93c12419c32 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 2 Oct 2023 22:19:35 +0100 Subject: handle/make/file: run extra arg before, not after The previous patch to the file was correct, except for off by one at the end, resulting in no argument being passed for project names. Now the extra commands are run *before* handle_dependencies, instead of running at the end of main. This prevents error. Signed-off-by: Leah Rowe --- script/handle/make/file | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/script/handle/make/file b/script/handle/make/file index 3bb8030f..e09bd887 100755 --- a/script/handle/make/file +++ b/script/handle/make/file @@ -21,12 +21,11 @@ main() esac shift; project="${OPTARG}"; shift done - [ -z "${project}" ] && err "project name not specified" + [ $# -gt 0 ] && x_ ./handle make file ${_flag} ${@} handle_dependencies run_make_command - [ $# -gt 0 ] && x_ ./handle make file ${_flag} ${@} } handle_dependencies() -- cgit v1.2.1