From 61661095a0187e17e07a0b06005564dcb5f4a9b2 Mon Sep 17 00:00:00 2001 From: Dylan Date: Thu, 21 Jan 2016 22:22:29 +1100 Subject: [PATCH] Suppress lsb_release errors --- fetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fetch b/fetch index e782b8a0..dbcb2796 100755 --- a/fetch +++ b/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)"