mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
bug fix, wait for 1.8.22 until verified
This commit is contained in:
parent
4e030ed5ea
commit
f8dd3b9b1d
17
inxi
17
inxi
|
@ -3,7 +3,7 @@
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 1.8.21
|
#### version: 1.8.21
|
||||||
#### Date: November 17 2012
|
#### Date: November 17 2012
|
||||||
#### Patch Number: 02
|
#### Patch Number: 03
|
||||||
########################################################################
|
########################################################################
|
||||||
#### SPECIAL THANKS
|
#### SPECIAL THANKS
|
||||||
########################################################################
|
########################################################################
|
||||||
|
@ -3635,6 +3635,7 @@ get_distro_data()
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
log_function_data "distro_file: $distro_file"
|
log_function_data "distro_file: $distro_file"
|
||||||
|
distro_file='os-release'
|
||||||
# first test for the legacy antiX distro id file
|
# first test for the legacy antiX distro id file
|
||||||
if [[ -e /etc/antiX ]];then
|
if [[ -e /etc/antiX ]];then
|
||||||
distro="$( grep -Eoi 'antix.*\.iso' <<< $( remove_erroneous_chars '/etc/antiX' ) | sed 's/\.iso//' )"
|
distro="$( grep -Eoi 'antix.*\.iso' <<< $( remove_erroneous_chars '/etc/antiX' ) | sed 's/\.iso//' )"
|
||||||
|
@ -3824,27 +3825,27 @@ get_lsb_os_release_data()
|
||||||
if ( $NF != "n/a" ) {
|
if ( $NF != "n/a" ) {
|
||||||
regularName = $NF
|
regularName = $NF
|
||||||
}
|
}
|
||||||
|
}
|
||||||
/^VERSION/ {
|
/^VERSION/ {
|
||||||
gsub(/^ +| +$|\"/, "", $NF)
|
gsub(/^ +| +$|\"/, "", $NF)
|
||||||
gsub(/^ +| +$/, "", $1)
|
gsub(/^ +| +$/, "", $1)
|
||||||
if ( $NF != "n/a" && $1 == "VERSION") {
|
if ( $NF != "n/a" && $1 == "VERSION" ) {
|
||||||
versionName = $NF
|
versionName = $NF
|
||||||
}
|
}
|
||||||
else if ( $NF != "n/a" && $1 == "VERSION_ID") {
|
else if ( $NF != "n/a" && $1 == "VERSION_ID" ) {
|
||||||
versionId = $NF
|
versionId = $NF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
END {
|
END {
|
||||||
if ( prettyName != "" ){
|
if ( prettyName != "" ) {
|
||||||
distroName = prettyName
|
distroName = prettyName
|
||||||
}
|
}
|
||||||
else if ( regularName != "" ){
|
else if ( regularName != "" ) {
|
||||||
distroName = regularName
|
distroName = regularName
|
||||||
if ( versionName != "" ){
|
if ( versionName != "" ) {
|
||||||
distroName = distroName " " versionName
|
distroName = distroName " " versionName
|
||||||
}
|
}
|
||||||
else if ( versionId != "" ){
|
else if ( versionId != "" ) {
|
||||||
distroName = distroName " " versionId
|
distroName = distroName " " versionId
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue