mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 01:00:17 +00:00
misc: cleanup
This commit is contained in:
4
neofetch
4
neofetch
@@ -867,7 +867,7 @@ get_distro() {
|
||||
# Chrome OS doesn't conform to the /etc/*-release standard.
|
||||
# While the file is a series of variables they can't be sourced
|
||||
# by the shell since the values aren't quoted.
|
||||
elif [[ -f "/etc/lsb-release" && "$(< /etc/lsb-release)" == *CHROMEOS* ]]; then
|
||||
elif [[ "$(< /etc/lsb-release)" == *CHROMEOS* ]]; then
|
||||
distro="$(awk -F '=' '/NAME|VERSION/ {printf $2 " "}' /etc/lsb-release)"
|
||||
|
||||
elif [[ -f "/etc/os-release" || \
|
||||
@@ -1039,7 +1039,7 @@ get_model() {
|
||||
;;
|
||||
|
||||
"Mac OS X")
|
||||
if [[ "$(kextstat | grep "FakeSMC")" != "" ]]; then
|
||||
if [[ "$(kextstat | grep -F "FakeSMC")" != "" ]]; then
|
||||
model="Hackintosh (SMBIOS: $(sysctl -n hw.model))"
|
||||
else
|
||||
model="$(sysctl -n hw.model)"
|
||||
|
Reference in New Issue
Block a user