mirror of
https://github.com/smxi/inxi.git
synced 2025-09-01 18:19:10 +00:00
try at bug fix for dual output of graphics line
This commit is contained in:
parent
5838f7e003
commit
9c27241efd
1 changed files with 10 additions and 7 deletions
17
inxi
17
inxi
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
########################################################################
|
########################################################################
|
||||||
#### Script Name: inxi
|
#### Script Name: inxi
|
||||||
#### version: 0.1.30
|
#### version: 0.1.31
|
||||||
#### Date: October 28 2008
|
#### Date: October 28 2008
|
||||||
########################################################################
|
########################################################################
|
||||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
||||||
|
@ -1182,12 +1182,15 @@ print_it_out()
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
i=1
|
if [[ ${#GFX[@]} -gt 1 ]]
|
||||||
while [[ -n ${GFX[i]} && $i -le 3 ]]
|
then
|
||||||
do
|
i=1
|
||||||
long_gfx=$( echo -ne " ${C1}Card $(($i+1))${C2} ${GFX[i]} " )
|
while [[ -n ${GFX[i]} && $i -le 3 ]]
|
||||||
(( i++ ))
|
do
|
||||||
done
|
long_gfx=$( echo -ne " ${C1}Card $(($i+1))${C2} ${GFX[i]} " )
|
||||||
|
(( i++ ))
|
||||||
|
done
|
||||||
|
fi
|
||||||
long_gfx=$( printf "${C1}%-${INDENT}s${C2} %s" "Graphics Info" "${C1}Card 1${C2} ${GFX[0]}${long_gfx}" )
|
long_gfx=$( printf "${C1}%-${INDENT}s${C2} %s" "Graphics Info" "${C1}Card 1${C2} ${GFX[0]}${long_gfx}" )
|
||||||
if ((X))
|
if ((X))
|
||||||
then
|
then
|
||||||
|
|
Loading…
Add table
Reference in a new issue