summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-03 05:57:39 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-05 12:18:22 +0100
commite6687929b96ba1e01a9796a66fe6cf8e554ad506 (patch)
treef2b6111729960df2bb0dda0911f7fe2d41d6a80e /include/lib.sh
parent02d60aca3004afcce03041244bb66668543fd1c4 (diff)
lib.sh find_ex: explicitly create the tmp file
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/lib.sh')
-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