git.sh: revert modification to for loop
i tried to be clever with this one, but it just made the script exit with an error. revert back to the old check (check whether one of either repo or repo backup is set) Signed-off-by: Leah Rowe <leah@libreboot.org>audit2
parent
381ed442d9
commit
448d02babb
|
@ -118,8 +118,10 @@ fetch_submodule()
|
||||||
$err "! . $mcfgdir/module.cfg"
|
$err "! . $mcfgdir/module.cfg"
|
||||||
|
|
||||||
for xt in repo file; do
|
for xt in repo file; do
|
||||||
eval "[ -n \"\$sub$xt\$sub${xt}_bkup\" ] && st=\"\$st \$xt\""
|
_seval="if [ -n \"\$sub$xt\" ] || [ -n \"\$sub${xt}_bkup\" ]"
|
||||||
|
eval "$_seval; then st=\"\$st \$xt\"; fi"
|
||||||
done
|
done
|
||||||
|
|
||||||
st="${st# }" && [ "$st" = "repo file" ] && $err "$mdir: repo+file"
|
st="${st# }" && [ "$st" = "repo file" ] && $err "$mdir: repo+file"
|
||||||
|
|
||||||
[ -z "$st" ] && return 0 # subrepo/subfile not defined
|
[ -z "$st" ] && return 0 # subrepo/subfile not defined
|
||||||
|
|
Loading…
Reference in New Issue