diff options
author | Leah Rowe <leah@libreboot.org> | 2023-10-02 22:19:35 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-10-02 22:21:42 +0100 |
commit | ad74b4c2819a445831d48ba21529e93c12419c32 (patch) | |
tree | f4a1bd75f29e9161bb7bd1f37a9f8f10022f60f0 /script | |
parent | 2e60e117982426b3a88d6a678482602625396e69 (diff) |
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 <leah@libreboot.org>
Diffstat (limited to 'script')
-rwxr-xr-x | script/handle/make/file | 3 |
1 files changed, 1 insertions, 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() |