mirror of
https://codeberg.org/libreboot/lbmk.git
synced 2026-07-16 12:54:03 +02:00
lib.sh: redirect find errors to /dev/null
this silences confusing error messages that the user sees on the screen, that are actually benign, and it will thus reduce the number of people who ask questions on #libreboot irc Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
+2
-1
@@ -143,7 +143,8 @@ find_ex()
|
|||||||
errx="$1" && shift 1
|
errx="$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
|
||||||
$errx find "$@" | sort > "$fd" || $err "!find $(echo "$@") > \"$fd\""
|
$errx find "$@" 2>/dev/null | sort > "$fd" || \
|
||||||
|
$err "!find $(echo "$@") > \"$fd\""
|
||||||
while read -r fx; do
|
while read -r fx; do
|
||||||
"$xx" "$fx" || break; :
|
"$xx" "$fx" || break; :
|
||||||
done < "$fd"
|
done < "$fd"
|
||||||
|
|||||||
Reference in New Issue
Block a user