summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-03 07:04:34 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-03 07:04:34 +0100
commit498f5a26cc82db8063c37876058091e1b1279d45 (patch)
treefff565b766dc65ccafab4c6975a3947a288fa857
parent00d22f20829251f55cd2e859d6fae9a61220c072 (diff)
init.sh: Always create xbmklocal
If we're in a release work directory, TMPDIR is already set, so the local ./tmp won't be created, which would lead to an error. Fix it by creating xbmklocal before checking TMPDIR. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/init.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/init.sh b/include/init.sh
index a5180d07..c4650576 100644
--- a/include/init.sh
+++ b/include/init.sh
@@ -186,6 +186,8 @@ xbmk_git_init()
xbmk_create_tmpdir()
{
+ x_ mkdir -p "$xbmklocal"
+
# unify all temporary files/directories in a single TMPDIR
[ -z "${TMPDIR+x}" ] || [ "${TMPDIR%_*}" = "/tmp/xbmk" ] || \
unset TMPDIR