mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-16 17:07:12 +00:00
general: Faster grep
This commit is contained in:
2
neofetch
2
neofetch
@@ -1039,7 +1039,7 @@ get_model() {
|
|||||||
;;
|
;;
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
if [[ "$(kextstat | grep -E "FakeSMC|VirtualSMC")" != "" ]]; then
|
if [[ "$(kextstat | grep -F -e "FakeSMC" -e "VirtualSMC")" != "" ]]; then
|
||||||
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
||||||
else
|
else
|
||||||
model="$(sysctl -n hw.model)"
|
model="$(sysctl -n hw.model)"
|
||||||
|
|||||||
Reference in New Issue
Block a user