From 9b104fca44a1d4a73fbfb4eed308098c51cc43e3 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 5 Oct 2025 01:23:32 +0100 Subject: init.sh: only create cache/ here 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 --- include/init.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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 -- cgit v1.2.1