mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-24 04:22:32 +00:00
Suppress lsb_release errors
This commit is contained in:
2
fetch
2
fetch
@@ -313,7 +313,7 @@ case "$os" in
|
||||
if type -p crux >/dev/null 2>&1; then
|
||||
distro="CRUX"
|
||||
elif type -p lsb_release >/dev/null 2>&1; then
|
||||
distro="$(lsb_release -a | awk -F':' '/Description/ {printf $2}')"
|
||||
distro="$(lsb_release -a 2>/dev/null | awk -F':' '/Description/ {printf $2}')"
|
||||
distro=${distro/[[:space:]]/}
|
||||
else
|
||||
distro="$(grep -h '^NAME=' /etc/*ease)"
|
||||
|
||||
Reference in New Issue
Block a user