git.sh: use setvars for fail variables

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-08 21:38:07 +01:00
parent 6bdb15fd32
commit 454f11bdd7

View File

@@ -92,9 +92,7 @@ tmpclone()
livepull="n" && [ "$repofail" = "y" ] && \
printf "Cached clone failed; trying online.\n" 1>&2 && livepull="y"
resetfail="n"
repofail="n"
amfail="n"
eval "`setvars "n" resetfail repofail amfail`"
[ $# -lt 6 ] || rm -Rf "$3" || err "git retry: !rm $3 ($1)"
repodir="$XBMK_CACHE/repo/${1##*/}" && [ $# -gt 5 ] && repodir="$3"