reconfigured lsb lookup, h2's fix

This commit is contained in:
trash80.v2.0 2008-12-21 04:45:31 +00:00
parent 78722b3748
commit cfa634c6bc

23
inxi
View file

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
######################################################################## ########################################################################
#### Script Name: inxi #### Script Name: inxi
#### version: 0.8.12 #### version: 0.8.13
#### Date: December 16 2008 #### Date: December 16 2008
######################################################################## ########################################################################
#### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif #### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif
@ -1314,18 +1314,15 @@ get_distro_data()
# This is a known bug, search for the word "strange" inside comments # This is a known bug, search for the word "strange" inside comments
# echo "i='$i' a_distro_glob[@]='${a_distro_glob[@]}'" # echo "i='$i' a_distro_glob[@]='${a_distro_glob[@]}'"
if [[ " ${a_distro_glob[@]} " == *" $i "* ]];then if [[ " ${a_distro_glob[@]} " == *" $i "* ]];then
distro_file="${i}" # Now lets see if the distro file is in the known-good working-lsb-list
break # if so, use lsb-release, if not, then just use the found file
fi # this is for only those distro's with self named release/version files
done # because Mint does not use such, it must be done as below
# Now lets see if the distro file is in the known-good working-lsb-list if [[ " $DISTROS_LSB_GOOD " == *" ${i} "* && -f /etc/lsb-release ]];then
# if so, use lsb-release distro_file='lsb-release'
# this is for only those distro's with self named release/version files else
# because Mint does not use such, it must be done as below distro_file="${i}"
for j in $DISTROS_LSB_GOOD fi
do
if [[ " ${distro_file} " == *" $j "* ]];then
distro_file='lsb-release'
break break
fi fi
done done