mirror of
https://github.com/smxi/inxi.git
synced 2024-11-17 00:31:19 +00:00
more cleanup of -i to make it more consistent with -n and readable
This commit is contained in:
parent
c44eb201f0
commit
289a50fe09
4
inxi
4
inxi
|
@ -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++))
|
||||
|
|
Loading…
Reference in a new issue