summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-14 13:23:10 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-14 13:23:10 +0100
commit08f93ec812f705fb475d180d7ee8b6811d7e7221 (patch)
treede92c8dc11947bd17197d40022b33f63ecbaa1a9
parente99be6e5dcadeb723434203f0dc1cf2bfa63962f (diff)
mk: redirect readlink err to /dev/null
i had this before. forgot to add it in the new design. oops. Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk b/mk
index 55b35a14..22f8bec2 100755
--- a/mk
+++ b/mk
@@ -16,8 +16,8 @@ eval "`printf "LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE \
findpath()
{
- eval "$(printf '%s\n' "$@" | awk '{printf \
- "readlink -f \"%s\" || realpath \"%s\" || return 1;\n", $0, $0}')"
+ eval "$(printf '%s\n' "$@" | awk '{printf "readlink -f \"%s\" \
+ 2>/dev/null || realpath \"%s\" 2>/dev/null || return 1;",$0,$0}')"
}
x_()