mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
final bug fixes, if google svn ever starts working again
This commit is contained in:
parent
4e31e4502c
commit
5654a8bffd
23
inxi
23
inxi
|
@ -5969,16 +5969,19 @@ print_machine_data()
|
||||||
if [[ ${#A_MACHINE_DATA[@]} -gt 0 ]];then
|
if [[ ${#A_MACHINE_DATA[@]} -gt 0 ]];then
|
||||||
# note: in some case a mobo/version will match a product name/version, do not print those
|
# note: in some case a mobo/version will match a product name/version, do not print those
|
||||||
# but for laptops, or even falsely id'ed desktops with batteries, let's print it all if it matches
|
# but for laptops, or even falsely id'ed desktops with batteries, let's print it all if it matches
|
||||||
if [[ $B_LAPTOP != 'true' ]];then
|
# there can be false id laptops if battery appears so need to make sure system is filled
|
||||||
if [[ -z ${A_MACHINE_DATA[0]} ]];then
|
if [[ -z ${A_MACHINE_DATA[0]} ]];then
|
||||||
b_skip_system='true'
|
b_skip_system='true'
|
||||||
# ibm / ibm can be true; dell / quantum is false, so in other words, only do this
|
else
|
||||||
# in case where the vendor is the same and the version is the same and not null,
|
if [[ $B_LAPTOP != 'true' ]];then
|
||||||
# otherwise the version information is going to be different in all cases I think
|
# ibm / ibm can be true; dell / quantum is false, so in other words, only do this
|
||||||
elif [[ ${A_MACHINE_DATA[0]} == ${A_MACHINE_DATA[5]} ]];then
|
# in case where the vendor is the same and the version is the same and not null,
|
||||||
if [[ -n ${A_MACHINE_DATA[2]} && ${A_MACHINE_DATA[2]} == ${A_MACHINE_DATA[7]} ]] || \
|
# otherwise the version information is going to be different in all cases I think
|
||||||
[[ -z ${A_MACHINE_DATA[2]} && ${A_MACHINE_DATA[1]} == ${A_MACHINE_DATA[6]} ]];then
|
if [[ -n ${A_MACHINE_DATA[0]} && ${A_MACHINE_DATA[0]} == ${A_MACHINE_DATA[5]} ]];then
|
||||||
b_skip_system='true'
|
if [[ -n ${A_MACHINE_DATA[2]} && ${A_MACHINE_DATA[2]} == ${A_MACHINE_DATA[7]} ]] || \
|
||||||
|
[[ -z ${A_MACHINE_DATA[2]} && ${A_MACHINE_DATA[1]} == ${A_MACHINE_DATA[6]} ]];then
|
||||||
|
b_skip_system='true'
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue