Browse Source

[IPW_FAST=0] Fixed a config parser bug with IFS=""

Reported by: Artjom A Anikeev <anikeev@ut.mephi.ru>
Dmitry Yu Okunev 6 years ago
parent
commit
6abe381b31
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ipw

+ 1 - 1
ipw

@@ -148,8 +148,8 @@ if [[ "$IPW_FAST" -ne '0' ]]; then
 		[[ "${WORDS[2]}" = 'inet' ]]
 			IFACE_DETAILS["${WORDS[1]}-primary-ipv4address"]="${WORDS[3]}"
 	done
+	IFS="$oldIFS"
 fi
-IFS="$oldIFS"
 ip_cmds() {
 	_IFACE="$1"; shift