git.sh: reduced indentation in prep_submodules

Signed-off-by: Leah Rowe <leah@libreboot.org>
20240612_branch
Leah Rowe 2024-06-07 12:55:30 +01:00
parent 9c1ea8f93a
commit 11c47ba7dd
1 changed files with 4 additions and 6 deletions

View File

@ -106,12 +106,10 @@ prep_submodules()
mdir="$PWD/config/submodule/$project" mdir="$PWD/config/submodule/$project"
[ -n "$tree" ] && mdir="$mdir/$tree" [ -n "$tree" ] && mdir="$mdir/$tree"
if [ -f "$mdir/module.list" ]; then [ -f "$mdir/module.list" ] || return 0
cat "$mdir/module.list" > "$tmpdir/modules" || \
$err "!cp $mdir/module.list $tmpdir/modules" cat "$mdir/module.list" > "$tmpdir/modules" || \
else $err "!cp $mdir/module.list $tmpdir/modules"
return 0
fi
while read -r msrcdir; do while read -r msrcdir; do
fetch_submodule "$msrcdir" fetch_submodule "$msrcdir"