Kernel: Add back OS check but simplify it
This commit is contained in:
parent
3c2fc99271
commit
220bd852ba
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -293,7 +293,7 @@ get_kernel() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Hide kernel info if it's identical to the distro info.
|
# 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
|
case "$distro_shorthand" in
|
||||||
"on" | "tiny") kernel="$kernel_version" ;;
|
"on" | "tiny") kernel="$kernel_version" ;;
|
||||||
*) unset kernel ;;
|
*) unset kernel ;;
|
||||||
|
|
Loading…
Reference in a new issue