We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e98581d commit 67c4318Copy full SHA for 67c4318
1 file changed
bin/v_upd_sys_ip
@@ -65,8 +65,8 @@ for ip in $ip_list; do
65
if [ -z "$check_ip" ]; then
66
67
# Parsing additional params
68
- iface=$(/sbin/ifconfig|grep -B1 -w "$ip"|head -n 1|cut -f 1 -d ' '|\
69
- cut -f 1 -d :)
+ iface=$(/sbin/ifconfig|grep -B1 -w "$ip"|head -n 1|cut -f 1 -d ' ')
+ interface=$(echo "$iface" | cut -f 1 -d :)
70
mask=$(/sbin/ifconfig |grep -w "$ip"|awk -F "Mask:" '{print $2}')
71
72
# Adding vesta ip
0 commit comments