branch one, bug fix

This commit is contained in:
inxi-svn 2014-08-13 03:07:41 +00:00
parent e39001ed32
commit 0f172aaf07

6
inxi
View file

@ -4889,8 +4889,7 @@ get_dmidecode_data()
{ {
eval $LOGFS eval $LOGFS
local dmiData="$( cat /home/harald/bin/scripts/inxi/data/dmidecode/dmidecode-memory-variants-1.txt ) local dmiData=""
"
local dmidecodePath='' local dmidecodePath=''
if [[ $B_DMIDECODE_SET != 'true' ]];then if [[ $B_DMIDECODE_SET != 'true' ]];then
@ -4904,8 +4903,7 @@ get_dmidecode_data()
# strip out all the stuff we don't want to see in the results. We want the error data in # strip out all the stuff we don't want to see in the results. We want the error data in
# stdout for error handling # stdout for error handling
# DMIDECODE_DATA="$( echo "$dmiData" | gawk -F ':' ' # DMIDECODE_DATA="$( echo "$dmiData" | gawk -F ':' '
# DMIDECODE_DATA="$( $dmidecodePath 2>&1 | gawk -F ':' ' DMIDECODE_DATA="$( $dmidecodePath 2>&1 | gawk -F ':' '
DMIDECODE_DATA="$( echo "$dmiData" | gawk -F ':' '
BEGIN { BEGIN {
IGNORECASE=1 IGNORECASE=1
cutExtraTab="false" cutExtraTab="false"