more cleanup of -i to make it more consistent with -n and readable

This commit is contained in:
inxi-svn 2011-04-25 07:09:28 +00:00
parent c44eb201f0
commit 289a50fe09

4
inxi
View file

@ -4954,12 +4954,12 @@ print_networking_ip_data()
IFS="$ORIGINAL_IFS"
if [[ $i -lt 3 ]];then
if [[ -n ${a_interfaces_working[0]} ]];then
interfaces="$interfaces ${C1}IF:${C2} ${a_interfaces_working[0]} ${C1}IP:${C2} ${a_interfaces_working[1]}"
interfaces="$interfaces ${C1}IF IP:${C2} ${a_interfaces_working[0]} ${C1}-${C2} ${a_interfaces_working[1]}"
fi
else
if [[ -n ${a_interfaces_working[0]} ]];then
# space on end here for lining up with line starter
interfaces_2="$interfaces_2${a_interfaces_working[0]} ${C1}IP:${C2} ${a_interfaces_working[1]} "
interfaces_2="$interfaces_2${C1}IF IP:${C2} ${a_interfaces_working[0]} ${C1}-${C2} ${a_interfaces_working[1]} "
fi
fi
((i++))