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>
This commit is contained in:
Leah Rowe
2025-05-03 07:04:34 +01:00
parent aa18889fb3
commit 980a1033e9
+2
View File
@@ -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