lib.sh: Simplified fx_() and removed fe_()

Instead of calling fe_, prefix x_ as indicated.

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2025-05-07 15:12:10 +01:00
parent 1390f7f800
commit ec5c954337
6 changed files with 13 additions and 23 deletions
+1 -13
View File
@@ -144,23 +144,11 @@ singletree()
return 1
}
fe_()
{
find_ex "x_" "$@"
}
fx_()
{
find_ex "" "$@"
}
find_ex()
{
xmsg="$1" && shift 1
fd="`mktemp`" && x_ rm -f "$fd" && x_ touch "$fd"
xx="$1" && shift 1
$xmsg "$@" 2>/dev/null | sort 1>"$fd" 2>/dev/null || \
err "!find $(echo "$@") > \"$fd\""
"$@" 2>/dev/null | sort 1>"$fd" 2>/dev/null || err "FATAL: !sort fx_"
dx_ "$xx" "$fd" || break
x_ rm -f "$fd"
}