From 5898d17100bfec3c1b72b3913fdcb06f45fa0984 Mon Sep 17 00:00:00 2001 From: inxi-svn Date: Fri, 21 Nov 2008 21:24:48 +0000 Subject: [PATCH] fixed bad variable --- inxi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inxi b/inxi index 7bca4bd..f2a54c3 100755 --- a/inxi +++ b/inxi @@ -1,7 +1,7 @@ #!/bin/bash ######################################################################## #### Script Name: inxi -#### version: 0.6.0-b1-t12 +#### version: 0.6.0-b1-t13 #### Date: November 20 2008 ######################################################################## #### inxi is a fork of infobash 3.02, the original bash sys info script by locsmif @@ -2539,7 +2539,7 @@ print_networking_ip_data() IFS="," a_interfaces_working=(${A_INTERFACES_DATA[i]}) IFS="$ORIGINAL_IFS" - if [[ $1 -lt 3 ]];then + if [[ $i -lt 3 ]];then if [[ -n ${a_interfaces_working[0]} ]];then interfaces="$interfaces ${C1}${a_interfaces_working[0]}${C2} ${a_interfaces_working[1]}" fi