summaryrefslogtreecommitdiff
path: root/include/init.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-11 21:43:50 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-11 21:43:50 +0100
commitd0a1b40910eecc9687dab4c97c4b0b92057842e8 (patch)
tree60a76e520f15dcedc3516401df551762656e7b1f /include/init.sh
parent0fd3d729985e69da307eae327ecdd3cd0ac6c0c1 (diff)
more cleanup
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/init.sh')
-rw-r--r--include/init.sh18
1 files changed, 3 insertions, 15 deletions
diff --git a/include/init.sh b/include/init.sh
index e611127f..52e87a6c 100644
--- a/include/init.sh
+++ b/include/init.sh
@@ -142,23 +142,12 @@ xbmk_set_env()
[ -n "${TMPDIR+x}" ] && \
is_child="y"
- if [ "$is_child" = "y" ]
- then
- # child instance of xbmk, so we stop init after this point
- # and execute the given user command upon return:
-
+ if [ "$is_child" = "y" ]; then
xbmk_child_set_env
-
- return 1
+ return 1 # child instance. discontinue initialisation.
else
- # parent instance of xbmk, so we continue initialising.
- # a parent instance of xbmk never processes its own
- # command directly; instead, it calls a child instance
- # of xbmk, and exits with the corresponding return status.
-
xbmk_parent_set_env
-
- return 0
+ return 0 # parent instance. continue initialisation.
fi
}
@@ -188,7 +177,6 @@ xbmk_child_set_tmp()
if [ "$locktmp" != "$xbtmpchk" ]; then
badtmp="TMPDIR '$xbtmpchk' changed; was '$locktmp'"
-
printf "bad TMPDIR init, '%s': %s\n" "$TMPDIR" "$badtmp" 1>&2
err "'$xbmklock' present with bad tmpdir. is a build running?"
fi