summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-10-05 01:23:32 +0100
committerLeah Rowe <leah@libreboot.org>2025-10-05 01:23:32 +0100
commit9b104fca44a1d4a73fbfb4eed308098c51cc43e3 (patch)
tree8e44277b976b737e4d051640b746d353f46752a6 /include
parentee2bca65f6e8eb8b1732803aece31c0eee03aaed (diff)
init.sh: only create cache/ hereHEADmaster
also, the check is -e, not -d, because we might be operating on a symlink. it's a bit hacky but this should work. the previous change (now reverted) broke re-use of the main cache/ in release work directories. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r--include/init.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/init.sh b/include/init.sh
index 6bed6ca4..96247908 100644
--- a/include/init.sh
+++ b/include/init.sh
@@ -60,6 +60,10 @@ xbmk_init()
export PWD="$xbmkpwd"
x_ xbmkdir "$basetmp"
+ if [ ! -e "cache" ]; then
+ x_ xbmkdir "cache"
+ fi
+
for init_cmd in get_version set_env set_threads git_init child_exec; do
if ! xbmk_$init_cmd "$@"; then
break