git.sh: remove another meaningless check

again, the directory in question is simply used
in a for loop using asterisk (git_am_patches) and
the for loop simply won't iterate if either the
directory doesn't exist or it contains no items.

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit2-merge1
Leah Rowe 2024-05-22 15:57:47 +01:00 committed by Leah Rowe
parent 71a9fcced8
commit 19f694bf2a
1 changed files with 0 additions and 1 deletions

View File

@ -126,7 +126,6 @@ patch_submodules()
{
mdir="${PWD}/config/submodule/$project"
[ -n "$tree" ] && mdir="$mdir/$tree"
[ -d "$mdir" ] || return 0
git -C "$tmpgit" submodule status | awk '{print $2}' > \
"$tmpdir/modules" || $err "$mdir: cannot list submodules"