git.sh: simplified repo/backup check
Signed-off-by: Leah Rowe <leah@libreboot.org>audit2
parent
acbefc558e
commit
109db65932
|
@ -121,8 +121,7 @@ fetch_submodule()
|
||||||
|
|
||||||
st=""
|
st=""
|
||||||
for _st in repo file; do
|
for _st in repo file; do
|
||||||
_seval="if [ -n \"\$sub$_st\" ] || [ -n \"\$sub${_st}_bkup\" ]"
|
eval "[ -n \"\$sub$_st\$sub${_st}_bkup\" ] && st=\"\$st \$_st\""
|
||||||
eval "$_seval; then st=\"\$st \$_st\"; fi"
|
|
||||||
done
|
done
|
||||||
st="${st# }"
|
st="${st# }"
|
||||||
[ "$st" = "repo file" ] && $err "$mdir: repo/file both defined"
|
[ "$st" = "repo file" ] && $err "$mdir: repo/file both defined"
|
||||||
|
|
Loading…
Reference in New Issue