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>
btrfsvols
Leah Rowe 2023-10-02 22:19:35 +01:00
parent 2e60e11798
commit ad74b4c281
1 changed files with 1 additions and 2 deletions

View 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()