From 44fb9873639301988b2a99e246243a83cc4fe1e2 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Thu, 27 Jun 2024 03:20:18 +0100 Subject: build: don't rm TMPDIR if it's /tmp we override TMPDIR, setting it to /tmp/xbmk*C if it's just set to tmp, that means we didn't set it properly, which is a bug. this patch protects against deletion of /tmp under such a fault condition, if it were ever to occur in the future. Signed-off-by: Leah Rowe --- build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build b/build index 6eae3aac..383e83cb 100755 --- a/build +++ b/build @@ -132,7 +132,7 @@ fail() tmp_cleanup() { [ "$xbmk_parent" = "y" ] || return 0 - rm -Rf "$TMPDIR" || return 1 + [ "$TMPDIR" = "/tmp" ] || rm -Rf "$TMPDIR" || return 1 rm -f lock || return 1 } -- cgit v1.2.1