git.sh: reduced indentation on repo/file check

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2024-06-20 00:51:04 +01:00
parent 4f6dda1366
commit cd1d847898
+5 -7
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" \
rm -Rf "$tmpgit/$1" || $err "!rm '$mdir' '$1'" "$tmpgit/$1" "$subhash" && return 0
tmpclone "$subrepo" "$subrepo_bkup" "$tmpgit/$1" "$subhash" \ rm -Rf "$tmpgit/$1" || $err "!rm '$mdir' '$1'"
"$mdir/${1##*/}/patches" tmpclone "$subrepo" "$subrepo_bkup" "$tmpgit/$1" "$subhash" \
else "$mdir/${1##*/}/patches"
download "$subfile" "$subfile_bkup" "$tmpgit/$1" "$subhash"
fi
} }
tmpclone() tmpclone()