summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-08 21:38:07 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-08 21:50:17 +0100
commit454f11bdd7bf7409276b2e0fc301a061b258e8d9 (patch)
tree848653606d70a959bde95d4677dd9cf24b4209e7
parent6bdb15fd329e1ffb22ff37c7e9a296cca633f836 (diff)
git.sh: use setvars for fail variables
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/git.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/include/git.sh b/include/git.sh
index afcfee93..14def209 100644
--- a/include/git.sh
+++ b/include/git.sh
@@ -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"