From b5416695eb6e87cacf0342c0bf26f55ede2cb4ba Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 31 Oct 2008 06:44:25 +0000 Subject: [PATCH] small output fix for networking card, single card case --- inxi | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/inxi b/inxi index 00a2050..519e647 100755 --- a/inxi +++ b/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]}" )