summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-19 18:50:06 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-19 18:50:06 +0100
commit769a97aed5a712c80141fee8da60868c437fbf36 (patch)
tree496935b3bf34c77f23b02ac4b19ac7a137beac66 /include
parent265ec0b7673d3df608dfb9e1cbec39b3bb68cdd6 (diff)
init.sh: Hardcode XBMK_CACHE for integrity
I never really intended for this to be configurable, but the cache directory is also used during release builds. There's too much that can go wrong, letting the user decide where their cache is. Simplify it by hardcoding. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/init.sh8
1 files changed, 1 insertions, 7 deletions
diff --git a/include/init.sh b/include/init.sh
index ee19c398..cd4acf43 100644
--- a/include/init.sh
+++ b/include/init.sh
@@ -89,15 +89,9 @@ xbmk_set_env()
export TMPDIR="$(mktemp -d -t xbmk_XXXXXXXX)"
xbmktmp="$TMPDIR"
- # XBMK_CACHE is a directory, for caching downloads and git repon
- [ -z "${XBMK_CACHE+x}" ] && export XBMK_CACHE="$xbmkpwd/cache"
- [ -z "$XBMK_CACHE" ] && export XBMK_CACHE="$xbmkpwd/cache"
+ export XBMK_CACHE="$xbmkpwd/cache"
[ -L "$XBMK_CACHE" ] && [ "$XBMK_CACHE" = "$xbmkpwd/cache" ] && \
err "cachedir '$xbmkpwd/cache' is a symlink"
- [ -L "$XBMK_CACHE" ] && export XBMK_CACHE="$xbmkpwd/cache"
- xbmkcache="`findpath "$XBMK_CACHE"`" || \
- err "Can't resolve cachedir: '$XBMK_CACHE'"
- export XBMK_CACHE="$xbmkcache"
[ ! -e "$XBMK_CACHE" ] || \
[ -d "$XBMK_CACHE" ] || err "cachedir '$XBMK_CACHE' is a file"; :