git.sh: reduced indentation on repo/file check

Signed-off-by: Leah Rowe <leah@libreboot.org>
audit6
Leah Rowe 2024-06-20 00:51:04 +01:00
parent 4f6dda1366
commit cd1d847898
1 changed files with 5 additions and 7 deletions

View File

@ -130,13 +130,11 @@ fetch_submodule()
chkvars "sub${st}" "sub${st}_bkup" "subhash" chkvars "sub${st}" "sub${st}_bkup" "subhash"
if [ "$st" = "repo" ]; then [ "$st" != "repo" ] && download "$subfile" "$subfile_bkup" \
"$tmpgit/$1" "$subhash" && return 0
rm -Rf "$tmpgit/$1" || $err "!rm '$mdir' '$1'" rm -Rf "$tmpgit/$1" || $err "!rm '$mdir' '$1'"
tmpclone "$subrepo" "$subrepo_bkup" "$tmpgit/$1" "$subhash" \ tmpclone "$subrepo" "$subrepo_bkup" "$tmpgit/$1" "$subhash" \
"$mdir/${1##*/}/patches" "$mdir/${1##*/}/patches"
else
download "$subfile" "$subfile_bkup" "$tmpgit/$1" "$subhash"
fi
} }
tmpclone() tmpclone()