Skip to content

Commit

Permalink
terminate the prop_network_id in grep so it is not overly greedy (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
febbraro authored and tonivdv committed Jan 18, 2017
1 parent f760337 commit ef23e63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-machine-nfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ lookupMandatoryProperties ()
fi

prop_nfshost_ip=$(VBoxManage list hostonlyifs |
grep "${prop_network_id}" -A 3 | grep IPAddress |
grep "${prop_network_id}$" -A 3 | grep IPAddress |
cut -d ':' -f2 | xargs);
if [ "" = "${prop_nfshost_ip}" ]; then
echoError "Could not find the virtualbox net IP!"; exit 1
Expand Down

0 comments on commit ef23e63

Please sign in to comment.