mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
Merge pull request #485 from konimex/master
Kernel: Modify how kernel_shorthand works in BSDs
This commit is contained in:
2
neofetch
2
neofetch
@@ -273,7 +273,7 @@ get_kernel() {
|
||||
esac
|
||||
|
||||
# Hardcode kernel settings in BSDs
|
||||
if [[ "$os" == "BSD" && ! "$distro" =~ (PacBSD|PCBSD) ]]; then
|
||||
if [[ "$os" == "BSD" && "$distro" =~ "$kernel_name" ]]; then
|
||||
case "$distro_shorthand" in
|
||||
"on" | "tiny") kernel="$kernel_version" ;;
|
||||
*) unset kernel ;;
|
||||
|
Reference in New Issue
Block a user