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
5
inxi
5
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,6 +3825,7 @@ 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)
|
||||||
|
@ -3834,7 +3836,6 @@ get_lsb_os_release_data()
|
||||||
versionId = $NF
|
versionId = $NF
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
END {
|
END {
|
||||||
if ( prettyName != "" ) {
|
if ( prettyName != "" ) {
|
||||||
distroName = prettyName
|
distroName = prettyName
|
||||||
|
|
Loading…
Reference in a new issue