mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-11 05:52:36 +02:00
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>
This commit is contained in:
+1
-7
@@ -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"; :
|
||||
|
||||
|
||||
Reference in New Issue
Block a user