Suppress lsb_release errors
This commit is contained in:
parent
31b1ce0bf1
commit
61661095a0
1 changed files with 1 additions and 1 deletions
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)"
|
||||
|
|
Loading…
Reference in a new issue