(No Version Change)

Fixed ordering of tests.
This commit is contained in:
inxi-svn 2008-11-11 01:09:04 +00:00
parent f298a77680
commit 4927ee47a7

2
inxi
View file

@ -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/ {