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
|
## note: would like to actually understand the method even if it's not used
|
||||||
# : ${distro:=Unknown distro o_O}
|
# : ${distro:=Unknown distro o_O}
|
||||||
## test for /etc/lsb-release as a backup in case of failure
|
## 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 '=' '
|
distro=$( gawk -F '=' '
|
||||||
{ IGNORECASE=1 }
|
{ IGNORECASE=1 }
|
||||||
/^DISTRIB_ID/ {
|
/^DISTRIB_ID/ {
|
||||||
|
|
Loading…
Reference in a new issue