From dff09036c9116125474759464284a2becb4ca27e Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Mon, 16 Mar 2020 13:46:39 +0100 Subject: Hide potential warning about broken symlink If the user removes the old kernel sources whilst still having the symlink point to the kernel directory, eselect will issue a warning about an invalid kernel target. For the purposes of kern, we can safely ignore this warning. --- kern | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kern b/kern index 23822e1..4f039b8 100755 --- a/kern +++ b/kern @@ -19,7 +19,7 @@ get_latest_kernel() { } get_current_kernel() { - basename "$(eselect --brief kernel show)" + basename "$(eselect --brief kernel show 2>/dev/null)" } set_kernel() { -- cgit v1.2.3-2-gb3c3