os: Fix bug where ChromeOS would be incorrectly detected. Closes #770
This commit is contained in:
parent
4cf8f5e989
commit
40c4a7748b
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -64,7 +64,7 @@ get_distro() {
|
||||||
*) distro="$(lsb_release -sd) on Windows 10" ;;
|
*) distro="$(lsb_release -sd) on Windows 10" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
elif [[ "$(< /proc/version)" == *"cros"* || -f "/dev/cros_ec" ]]; then
|
elif [[ "$(< /proc/version)" == *"chrome-bot"* || -f "/dev/cros_ec" ]]; then
|
||||||
case "$distro_shorthand" in
|
case "$distro_shorthand" in
|
||||||
"on") distro="$(lsb_release -sir) [Chrome OS]" ;;
|
"on") distro="$(lsb_release -sir) [Chrome OS]" ;;
|
||||||
"tiny") distro="Chrome OS" ;;
|
"tiny") distro="Chrome OS" ;;
|
||||||
|
|
Loading…
Reference in a new issue