From 7c04cd37b52afe971cafcb607f07428c46ea9b24 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sun, 31 Aug 2025 21:33:00 +0100 Subject: init.sh: tidy up xbmk_child_set_tmp the checks of xbmk cache/threads is unrelated. this has been moved back to the calling function. Signed-off-by: Leah Rowe --- include/init.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/init.sh b/include/init.sh index 557f7d57..d6d9a4bb 100644 --- a/include/init.sh +++ b/include/init.sh @@ -71,6 +71,8 @@ xbmk_set_env() if [ "$is_child" = "y" ]; then xbmk_child_set_tmp + [ -z "${XBMK_CACHE+x}" ] && err "XBMK_CACHE unset on child" + [ -z "${XBMK_THREADS+x}" ] && xbmk_set_threads; : return 1 fi @@ -136,9 +138,6 @@ xbmk_child_set_tmp() xbtmp="$xbtmpchk" export TMPDIR="$xbtmpchk" - - [ -z "${XBMK_CACHE+x}" ] && err "XBMK_CACHE unset on child" - [ -z "${XBMK_THREADS+x}" ] && xbmk_set_threads; : } xbmk_parent_check_tmp() -- cgit v1.2.1