init.sh: move parent fork to new function

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-04-26 21:28:13 +01:00
parent a0e1d42ff7
commit 0280cd4c0e
+5
View File
@@ -204,6 +204,11 @@ xbmk_child_init()
x_ ln -s "`pybin "$python"`" python
) || $err "Can't set up python symlink in $XBMK_CACHE/xbmkpath"
xbmk_child_exec "$@"
}
xbmk_child_exec()
{
xbmk_rval=0
( x_ ./mk "$@" ) || xbmk_rval=1
rm -Rf "$xbmktmp" || xbmk_rval=1