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 <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-08-31 21:33:00 +01:00
parent 2d20be3d99
commit 7c04cd37b5
+2 -3
View File
@@ -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()