summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2024-06-07 12:55:30 +0100
committerLeah Rowe <leah@libreboot.org>2024-06-07 12:55:30 +0100
commit11c47ba7dd76f013f34429ff7b44f0a07ed40211 (patch)
tree4419ccdc8e466a82e105396db0d8efbf4b940b6e /include
parent9c1ea8f93ac08a0a0aac5e0f71564a376151859e (diff)
git.sh: reduced indentation in prep_submodules
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rwxr-xr-xinclude/git.sh10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/git.sh b/include/git.sh
index 8af1f0d5..7f4af0c4 100755
--- a/include/git.sh
+++ b/include/git.sh
@@ -106,12 +106,10 @@ prep_submodules()
mdir="$PWD/config/submodule/$project"
[ -n "$tree" ] && mdir="$mdir/$tree"
- if [ -f "$mdir/module.list" ]; then
- cat "$mdir/module.list" > "$tmpdir/modules" || \
- $err "!cp $mdir/module.list $tmpdir/modules"
- else
- return 0
- fi
+ [ -f "$mdir/module.list" ] || return 0
+
+ cat "$mdir/module.list" > "$tmpdir/modules" || \
+ $err "!cp $mdir/module.list $tmpdir/modules"
while read -r msrcdir; do
fetch_submodule "$msrcdir"