git.sh: use setvars for fail variables

Signed-off-by: Leah Rowe <leah@libreboot.org>
25.04_branch^2
Leah Rowe 2025-05-08 21:38:07 +01:00
parent 7b2671ea26
commit a5c5089eda
1 changed files with 1 additions and 3 deletions

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"