aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-03-16 13:46:39 +0100
committerWynn Wolf Arbor2020-03-16 13:46:39 +0100
commitdff09036c9116125474759464284a2becb4ca27e (patch)
tree10f89be811d971d9807e28557cda68e0c9dd0af2
parent070a66509cc8c0df7122587944005a0131b210d8 (diff)
downloadkern-dff09036c9116125474759464284a2becb4ca27e.tar.gz
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.
Diffstat (limited to '')
-rwxr-xr-xkern2
1 files changed, 1 insertions, 1 deletions
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() {