mirror of
https://github.com/smxi/inxi.git
synced 2025-01-19 08:57:57 +00:00
small output fix for networking card, single card case
This commit is contained in:
parent
b1e4762e7d
commit
b5416695eb
7
inxi
7
inxi
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
########################################################################
|
||||
#### Script Name: inxi
|
||||
#### version: 0.2.13
|
||||
#### version: 0.2.14
|
||||
#### Date: October 30 2008
|
||||
########################################################################
|
||||
#### inxi is a fork of infobash, the original bash sys info script by locsmif
|
||||
|
@ -1360,15 +1360,14 @@ print_intro_data()
|
|||
|
||||
print_networking_data()
|
||||
{
|
||||
local i='' card_plural='s' card_one='Card-1 ' network_data=''
|
||||
local i='' card_one='Card-1 ' network_data=''
|
||||
|
||||
# set A_NETWORK_DATA
|
||||
get_networking_data
|
||||
|
||||
if [[ -n ${A_NETWORK_DATA[@]} ]];then
|
||||
if [[ ${#A_NETWORK_DATA[@]} -le 1 ]];then
|
||||
card_plural=''
|
||||
card_one=''
|
||||
card_one='Card'
|
||||
fi
|
||||
i=0
|
||||
network_data=$( create_print_line "Network:" "${C1}$card_one${C2}${A_NETWORK_DATA[i]}" )
|
||||
|
|
Loading…
Reference in a new issue