summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-04-26 21:28:13 +0100
committerLeah Rowe <leah@libreboot.org>2025-04-26 21:28:13 +0100
commit0280cd4c0e74a6d11e5f2a5d07d914532dfb7983 (patch)
treed1464a81d5c8b5de0c058f7e4a613b377f350ceb
parenta0e1d42ff74ab3191b88818c6ad8220ebbc1afc4 (diff)
init.sh: move parent fork to new function
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/init.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/init.sh b/include/init.sh
index c9be7e0c..dbe6bcd9 100644
--- a/include/init.sh
+++ b/include/init.sh
@@ -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