mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-14 07:19:40 +02:00
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>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user