mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-24 12:12:59 +02:00
git.sh: reduced indentation on repo/file check
Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+5
-7
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user