mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
new tarball, last patch, now globally strip out (x86_64/i686 type data too
This commit is contained in:
parent
ac174c5b94
commit
d519d13c02
13
inxi
13
inxi
|
@ -3711,7 +3711,16 @@ get_distro_data()
|
||||||
distro='unknown'
|
distro='unknown'
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
# final step cleanup of unwanted information
|
||||||
|
# opensuse has the x86 etc type string in names, not needed as redundant since -S already shows that
|
||||||
|
distro=$( gawk '
|
||||||
|
BEGIN {
|
||||||
|
IGNORECASE=1
|
||||||
|
}
|
||||||
|
{
|
||||||
|
sub(/ *\((x86_64|i486|i586|i686|686|586|486)\)/, "", $0)
|
||||||
|
print $0
|
||||||
|
}' <<< $distro )
|
||||||
echo "$distro"
|
echo "$distro"
|
||||||
log_function_data "distro: $distro"
|
log_function_data "distro: $distro"
|
||||||
eval $LOGFE
|
eval $LOGFE
|
||||||
|
@ -3849,8 +3858,6 @@ get_lsb_os_release_data()
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
# opensuse has the x86 string in names, not needed as redundant
|
|
||||||
sub(/ *\(x86_64\)| *\(686\)/, "", distroName)
|
|
||||||
print distroName
|
print distroName
|
||||||
}
|
}
|
||||||
' $FILE_OS_RELEASE )
|
' $FILE_OS_RELEASE )
|
||||||
|
|
Loading…
Reference in a new issue