From ab1de702f9776ac8e2fce9a497e4db7599cea7ae Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 25 Oct 2016 10:30:41 +1100 Subject: [PATCH] Distro: Simplify shorthand for lsb_release --- neofetch | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/neofetch b/neofetch index 467950cd..214fb195 100755 --- a/neofetch +++ b/neofetch @@ -131,10 +131,11 @@ getdistro() { elif type -p lsb_release >/dev/null 2>&1; then case "$distro_shorthand" in - "on") distro="$(lsb_release -sir 2>/dev/null)" ;; - "tiny") distro="$(lsb_release -si 2>/dev/null)" ;; - *) distro="$(lsb_release -sd 2>/dev/null)" ;; + "on") lsb_flags="-sir" ;; + "tiny") lsb_flags="-si" ;; + *) lsb_flags="-sd" ;; esac + distro="$(lsb_release $lsb_flags 2>/dev/null)" elif type -p guix >/dev/null 2>&1; then distro="GuixSD"