build: simplify for loop in fetch_trees()
Signed-off-by: Leah Rowe <leah@libreboot.org>20240612_branch
parent
8e05399d91
commit
350857fff3
6
build
6
build
|
@ -185,10 +185,8 @@ fetch_trees()
|
||||||
done
|
done
|
||||||
|
|
||||||
for x in config/*/build.list; do
|
for x in config/*/build.list; do
|
||||||
[ -f "${x}" ] || continue
|
[ -f "$x" ] && xp="${x#*/}" && xp="${xp%/*}"
|
||||||
xp="${x#*/}"; xp="${xp%/*}"
|
[ ! -f "$x" ] || [ -L "$xp" ] || x_ rm -Rf "src/$xp/$xp"
|
||||||
[ -L "${xp}" ] || rm -Rf "src/${xp}/${xp}" || \
|
|
||||||
$err "!rm -Rf \"src/${xp}/${xp}\""
|
|
||||||
done
|
done
|
||||||
|
|
||||||
find . -name ".git" -exec rm -Rf {} + || $err "$_xm: rm .git"
|
find . -name ".git" -exec rm -Rf {} + || $err "$_xm: rm .git"
|
||||||
|
|
Loading…
Reference in New Issue