From caea0f059c36dbdbf118b04ad7adb461750408ae Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 17 Oct 2018 14:53:54 +1100 Subject: [PATCH] general: Faster grep --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index bd55790b..833e8cf0 100755 --- a/neofetch +++ b/neofetch @@ -1039,7 +1039,7 @@ get_model() { ;; "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))" else model="$(sysctl -n hw.model)"