Browse Source

Fixed an error with ignoring IP_CMDs

Dmitry Yu Okunev 6 years ago
parent
commit
ede26b2de8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ipw

+ 1 - 1
ipw

@@ -159,7 +159,7 @@ ip_cmds() {
 	[[ "$IPW_FAST" -ne 0 ]] &&
 		# Don't do anything if the interface should be "empty" and it's already is
 		[[ "${!IP_CMDS_VARIABLE}" = '' ]] &&
-			[[ "${IFACE_DETAILS[${_IFACE}-primary-ipv4address]}" != '' ]]
+			[[ "${IFACE_DETAILS[${_IFACE}-primary-ipv4address]}" != '' ]] &&
 				return
 
 	ip addr flush dev "$_IFACE"