summaryrefslogtreecommitdiff
path: root/include/lib.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-05-05 20:45:31 +0100
committerLeah Rowe <leah@libreboot.org>2025-05-05 20:45:31 +0100
commitef38333f8b0dae8f7f7b271128e2805de9669be3 (patch)
treeaf40010b96767197ffbe3f23e727da47c9adb177 /include/lib.sh
parentc275f35e7e26c878011e8033680c11b75637390a (diff)
lib.sh find_ex: Write sort errors to /dev/null
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 6de1010e..e6fa7e75 100644
--- a/include/lib.sh
+++ b/include/lib.sh
@@ -166,7 +166,7 @@ find_ex()
xmsg="$1" && shift 1
fd="`mktemp`" && x_ rm -f "$fd" && x_ touch "$fd"
xx="$1" && shift 1
- $xmsg find "$@" 2>/dev/null | sort > "$fd" || \
+ $xmsg find "$@" 2>/dev/null | sort 1>"$fd" 2>/dev/null || \
err "!find $(echo "$@") > \"$fd\""
while read -r fx; do
$xx "$fx" || break; :