git.sh: condense fetch_targets() a bit
Signed-off-by: Leah Rowe <leah@libreboot.org>audit6
parent
4772186b19
commit
5ba0433b5f
|
@ -11,11 +11,9 @@ fetch_targets()
|
||||||
x_ ./update trees -f "$project" "$tree_depend"
|
x_ ./update trees -f "$project" "$tree_depend"
|
||||||
e "src/$project/$tree" d && return 0
|
e "src/$project/$tree" d && return 0
|
||||||
|
|
||||||
|
|
||||||
printf "Creating %s tree %s\n" "$project" "$tree"
|
printf "Creating %s tree %s\n" "$project" "$tree"
|
||||||
git_prep "$loc" "$loc" "$PWD/$cfgsdir/$tree/patches" \
|
git_prep "$loc" "$loc" "$PWD/$cfgsdir/$tree/patches" \
|
||||||
"${loc%/*}/$tree" u
|
"${loc%/*}/$tree" u; nuke "$project/$tree" "$project/$tree"
|
||||||
nuke "$project/$tree" "$project/$tree"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch_project()
|
fetch_project()
|
||||||
|
|
Loading…
Reference in New Issue