From 4927ee47a713d9e29ba3eaf5a99bc18bd5a8eeff Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Tue, 11 Nov 2008 01:09:04 +0000 Subject: [PATCH] (No Version Change) Fixed ordering of tests. --- inxi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inxi b/inxi index 33274c1..f25ff40 100755 --- a/inxi +++ b/inxi @@ -1053,7 +1053,7 @@ get_distro_data() ## note: would like to actually understand the method even if it's not used # : ${distro:=Unknown distro o_O} ## test for /etc/lsb-release as a backup in case of failure - if [[ -f /etc/lsb-release && -z $distro ]];then + if [[ -z $distro && -f /etc/lsb-release ]];then distro=$( gawk -F '=' ' { IGNORECASE=1 } /^DISTRIB_ID/ {