lib.sh find_ex: Write sort errors to /dev/null
Signed-off-by: Leah Rowe <leah@libreboot.org>25.04_branch
parent
0ba013a61d
commit
ea8f9b59c6
|
@ -166,7 +166,7 @@ find_ex()
|
||||||
xmsg="$1" && shift 1
|
xmsg="$1" && shift 1
|
||||||
fd="`mktemp`" && x_ rm -f "$fd" && x_ touch "$fd"
|
fd="`mktemp`" && x_ rm -f "$fd" && x_ touch "$fd"
|
||||||
xx="$1" && shift 1
|
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\""
|
err "!find $(echo "$@") > \"$fd\""
|
||||||
while read -r fx; do
|
while read -r fx; do
|
||||||
$xx "$fx" || break; :
|
$xx "$fx" || break; :
|
||||||
|
|
Loading…
Reference in New Issue