mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-14 12:37:16 +00:00
Kernel: Add back OS check but simplify it
This commit is contained in:
2
neofetch
2
neofetch
@@ -293,7 +293,7 @@ get_kernel() {
|
||||
esac
|
||||
|
||||
# Hide kernel info if it's identical to the distro info.
|
||||
if [[ "$distro" == *"$kernel_name"* ]]; then
|
||||
if [[ "$os" =~ (BSD|MINIX) && "$distro" == *"$kernel_name"* ]]; then
|
||||
case "$distro_shorthand" in
|
||||
"on" | "tiny") kernel="$kernel_version" ;;
|
||||
*) unset kernel ;;
|
||||
|
||||
Reference in New Issue
Block a user