fixed bad variable

This commit is contained in:
inxi-svn 2008-11-21 21:24:48 +00:00
parent 45392d7153
commit 5898d17100

4
inxi
View file

@ -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