Suppress lsb_release errors

This commit is contained in:
Dylan 2016-01-21 22:22:29 +11:00
parent 31b1ce0bf1
commit 61661095a0

2
fetch
View file

@ -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)"