Commit 40c4a774 authored by Dylan Araps's avatar Dylan Araps

os: Fix bug where ChromeOS would be incorrectly detected. Closes #770

parent 4cf8f5e9
......@@ -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" ;;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment