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
3de37dc6
Commit
3de37dc6
authored
Nov 16, 2016
by
Dylan Araps
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Distro: Prefer /etc/os-release, break on successful source
parent
4fe0dcd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
neofetch
neofetch
+3
-2
No files found.
neofetch
View file @
3de37dc6
...
@@ -131,6 +131,7 @@ get_distro() {
...
@@ -131,6 +131,7 @@ get_distro() {
esac
esac
ascii_distro
=
"Windows 10"
ascii_distro
=
"Windows 10"
# TODO: Install Red Star OS and check if this is really needed.
elif
[[
-f
"/etc/redstar-release"
]]
;
then
elif
[[
-f
"/etc/redstar-release"
]]
;
then
case
"
$distro_shorthand
"
in
case
"
$distro_shorthand
"
in
"on"
|
"tiny"
)
distro
=
"Red Star OS"
;;
"on"
|
"tiny"
)
distro
=
"Red Star OS"
;;
...
@@ -160,8 +161,8 @@ get_distro() {
...
@@ -160,8 +161,8 @@ get_distro() {
else
else
# Source the os-release file
# Source the os-release file
for
file
in
/etc/
*
ease /usr/lib/
*
ease
;
do
for
file
in
/etc/
os-release /etc/
*
ease /usr/lib/
*
ease
;
do
source
"
$file
"
source
"
$file
"
&&
break
done
done
# The 3rd line down matches the fold marker syntax. {{{
# The 3rd line down matches the fold marker syntax. {{{
...
...
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