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
parent
2e60e11798
commit
ad74b4c281
|
@ -21,12 +21,11 @@ main()
|
||||||
esac
|
esac
|
||||||
shift; project="${OPTARG}"; shift
|
shift; project="${OPTARG}"; shift
|
||||||
done
|
done
|
||||||
|
|
||||||
[ -z "${project}" ] && err "project name not specified"
|
[ -z "${project}" ] && err "project name not specified"
|
||||||
|
[ $# -gt 0 ] && x_ ./handle make file ${_flag} ${@}
|
||||||
|
|
||||||
handle_dependencies
|
handle_dependencies
|
||||||
run_make_command
|
run_make_command
|
||||||
[ $# -gt 0 ] && x_ ./handle make file ${_flag} ${@}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
handle_dependencies()
|
handle_dependencies()
|
||||||
|
|
Loading…
Reference in New Issue