Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
neofetch
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
neofetch
Commits
b699d75a
Unverified
Commit
b699d75a
authored
Jan 23, 2020
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
neofetch: Fix Chrome OS detection. Closes #1384
parent
39d7188f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
neofetch
neofetch
+8
-7
No files found.
neofetch
View file @
b699d75a
...
@@ -736,7 +736,7 @@ image_source="auto"
...
@@ -736,7 +736,7 @@ image_source="auto"
# XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, Bitrig,
# XFerience, ArchMerge, Arch, Artix, Arya, Bedrock, Bitrig,
# BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
# BlackArch, BLAG, BlankOn, BlueLight, bonsai, BSD,
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
# BunsenLabs, Calculate, Carbs, CentOS, Chakra, ChaletOS,
# Chapeau, Chrom, Cleanjaro, ClearOS, Clear_Linux, Clover,
# Chapeau, Chrom
*
, Cleanjaro, ClearOS, Clear_Linux, Clover,
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
# Condres, Container_Linux, CRUX, Cucumber, Debian, Deepin,
# DesaOS, Devuan, DracOS, DragonFly, Drauger, Elementary,
# DesaOS, Devuan, DracOS, DragonFly, Drauger, Elementary,
# Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
# Endless, EuroLinux, Exherbo, Fedora, Feren, FreeBSD,
...
@@ -996,7 +996,7 @@ get_distro() {
...
@@ -996,7 +996,7 @@ get_distro() {
# While the file is a series of variables they can't be sourced
# While the file is a series of variables they can't be sourced
# by the shell since the values aren't quoted.
# by the shell since the values aren't quoted.
elif [[ -f /etc/lsb-release && $(< /etc/lsb-release) == *CHROMEOS* ]]; then
elif [[ -f /etc/lsb-release && $(< /etc/lsb-release) == *CHROMEOS* ]]; then
distro=
$(awk -F '=' '/NAME|VERSION/ {printf $2 " "}' /etc/lsb-release)
distro=
'Chrome OS'
elif type -p guix >/dev/null; then
elif type -p guix >/dev/null; then
case $distro_shorthand in
case $distro_shorthand in
...
@@ -1033,11 +1033,12 @@ get_distro() {
...
@@ -1033,11 +1033,12 @@ get_distro() {
esac
esac
elif [[ $(< /proc/version) == *chrome-bot* || -f /dev/cros_ec ]]; then
elif [[ $(< /proc/version) == *chrome-bot* || -f /dev/cros_ec ]]; then
case $distro_shorthand in
[[ $distro != *Chrome* ]] &&
on) distro+=" [Chrome OS]" ;;
case $distro_shorthand in
tiny) distro="Chrome OS" ;;
on) distro+=" [Chrome OS]" ;;
*) distro+=" on Chrome OS" ;;
tiny) distro="Chrome OS" ;;
esac
*) distro+=" on Chrome OS" ;;
esac
fi
fi
distro=$(trim_quotes "$distro")
distro=$(trim_quotes "$distro")
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment