diff options
author | Leah Rowe <leah@libreboot.org> | 2025-09-07 13:35:17 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-09-07 13:37:02 +0100 |
commit | 1c02f2a7704199f5a19c244ccae5b9e5c5b38dd5 (patch) | |
tree | 71e0aca90ef09c45bc2f5af7c7c72c4822587212 /include | |
parent | 5096e0040f3c231393fc8a2b2fa2d344de354158 (diff) |
release.sh: put vdir in xmtmp, not XBMK_CACHE
XBMK_CACHE is meant for permanent cached files, not
temporarily files.
the temporary release files are copied upon successful
return, to their rightful place under release/
this new change also reduces the chance of race
conditions, if multiple xbmk instances are used; while
not yet supported as a use-case, this is a goal for a
future design change.
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/release.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/release.sh b/include/release.sh index 3eb95e2d..45b73687 100644 --- a/include/release.sh +++ b/include/release.sh @@ -21,7 +21,9 @@ release() [ -e "$reldest" ] && \ err "already exists: \"$reldest\"" - vdir="$XBMK_CACHE/relpwd/${xbtmp##*/}/$version" + vdir="`mktemp -d || err "can't make vdir"`" || err + vdir="$vdir/$version" + rsrc="$vdir/${relname}_src" remkdir "$vdir" |