mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-06 07:04:03 +00:00
os: Fix bug where ChromeOS would be incorrectly detected. Closes #770
This commit is contained in:
2
neofetch
2
neofetch
@@ -64,7 +64,7 @@ get_distro() {
|
||||
*) distro="$(lsb_release -sd) on Windows 10" ;;
|
||||
esac
|
||||
|
||||
elif [[ "$(< /proc/version)" == *"cros"* || -f "/dev/cros_ec" ]]; then
|
||||
elif [[ "$(< /proc/version)" == *"chrome-bot"* || -f "/dev/cros_ec" ]]; then
|
||||
case "$distro_shorthand" in
|
||||
"on") distro="$(lsb_release -sir) [Chrome OS]" ;;
|
||||
"tiny") distro="Chrome OS" ;;
|
||||
|
||||
Reference in New Issue
Block a user