bug fix, wait for 1.8.22 until verified

This commit is contained in:
inxi-svn 2012-11-17 22:49:30 +00:00
parent 4e030ed5ea
commit f8dd3b9b1d

5
inxi
View file

@ -3,7 +3,7 @@
#### Script Name: inxi
#### version: 1.8.21
#### Date: November 17 2012
#### Patch Number: 02
#### Patch Number: 03
########################################################################
#### SPECIAL THANKS
########################################################################
@ -3635,6 +3635,7 @@ get_distro_data()
done
fi
log_function_data "distro_file: $distro_file"
distro_file='os-release'
# first test for the legacy antiX distro id file
if [[ -e /etc/antiX ]];then
distro="$( grep -Eoi 'antix.*\.iso' <<< $( remove_erroneous_chars '/etc/antiX' ) | sed 's/\.iso//' )"
@ -3824,6 +3825,7 @@ get_lsb_os_release_data()
if ( $NF != "n/a" ) {
regularName = $NF
}
}
/^VERSION/ {
gsub(/^ +| +$|\"/, "", $NF)
gsub(/^ +| +$/, "", $1)
@ -3834,7 +3836,6 @@ get_lsb_os_release_data()
versionId = $NF
}
}
}
END {
if ( prettyName != "" ) {
distroName = prettyName