Distro: Silence source
This commit is contained in:
parent
d2f8f7247a
commit
a95450a1bf
2
neofetch
2
neofetch
|
@ -88,7 +88,7 @@ get_distro() {
|
||||||
else
|
else
|
||||||
# Source the os-release file
|
# Source the os-release file
|
||||||
for file in /etc/os-release /usr/lib/os-release /etc/*release /usr/lib/*release; do
|
for file in /etc/os-release /usr/lib/os-release /etc/*release /usr/lib/*release; do
|
||||||
source "$file" && break
|
source "$file" 2>/dev/null && break
|
||||||
done
|
done
|
||||||
|
|
||||||
# Format the distro name.
|
# Format the distro name.
|
||||||
|
|
Reference in New Issue