summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-03 05:57:39 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-03 05:57:39 +0100
commita17875c34593cf966e61aacb9285f324723bb245 (patch)
treeca3197b4fa944938916926ab16fd5a8f9088b96c
parent0ffaf5c7331ae0fac9db8cf8a2b670e156fad7e9 (diff)
lib.sh find_ex: explicitly create the tmp file
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rw-r--r--include/lib.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/lib.sh b/include/lib.sh
index 3f5e5d37..8bad16ce 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -141,7 +141,7 @@ fx_()
find_ex()
{
errx="$1" && shift 1
- fd="`mktemp`"
+ fd="`mktemp`" && x_ rm -f "$fd" && x_ touch rm -f "$fd"
xx="$1" && shift 1
$errx find "$@" | sort > "$fd" || $err "!find $(echo "$@") > \"$fd\""
while read -r fx; do