mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
Fixed a small output issue with card gfx data
This commit is contained in:
parent
d1694d1374
commit
44a2b47d93
8
inxi
8
inxi
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 0.1.43
|
||||
#### version: 0.1.45
|
||||
#### Date: October 29 2008
|
||||
########################################################################
|
||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
||||
|
@ -1191,7 +1191,7 @@ print_cpu_data()
|
|||
|
||||
print_gfx_data()
|
||||
{
|
||||
local gfx_data='' i='' card_one=''
|
||||
local gfx_data='' i='' card_one='Card '
|
||||
|
||||
if [[ ${#A_GFX_DATA[@]} -gt 1 ]]
|
||||
then
|
||||
|
@ -1201,9 +1201,9 @@ print_gfx_data()
|
|||
gfx_data=" ${C1}Card-$(($i+1))${C2} ${GFX[i]} "
|
||||
(( i++ ))
|
||||
done
|
||||
card_one='Card-1'
|
||||
card_one='Card-1 '
|
||||
fi
|
||||
gfx_data=$( create_print_line "Graphics:" "${C1}$card_one${C2} ${A_GFX_DATA[0]}${gfx_data}" )
|
||||
gfx_data=$( create_print_line "Graphics:" "${C1}$card_one${C2}${A_GFX_DATA[0]}${gfx_data}" )
|
||||
if [ "$X" -gt 0 ]
|
||||
then
|
||||
gfx_data="${gfx_data} ${C1} $XVER ${CN}[${C2} ${RES} ${CN}]"
|
||||
|
|
Loading…
Reference in a new issue