diff options
author | Leah Rowe <leah@libreboot.org> | 2023-09-01 01:33:17 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2023-09-01 01:36:34 +0100 |
commit | 12b33eb8c18b37546599feec908b9acd829f0029 (patch) | |
tree | e2d20388335eb646f1b1057597943bf609b1d8aa /script/update | |
parent | 225e2609fa758a366238afcb57ab6581496e0399 (diff) |
lbmk script: always clean up /tmp files
export TMPDIR to scripts, and handle it in a way that
we know lbmk set it
delete it at the end of the parent process, but not child
processes; when the lbmk script calls itself, child processes
will not delete the tmp directory.
some scripts in lbmk weren't cleaning up the tmpfiles they
made, and they still don't, but this mitigates that.
now in follow-up commits, i can start cleaning up those
scripts too.
not handled by this patch:
if the user cancels lbmk (ctrl+c), the tmp directory will
still be there. this too will be handled, in subsequent
patches
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/update')
0 files changed, 0 insertions, 0 deletions