mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
(No Version Change)
Fixed ordering of tests.
This commit is contained in:
parent
f298a77680
commit
4927ee47a7
2
inxi
2
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/ {
|
||||
|
|
Loading…
Reference in a new issue