Skip to content
This repository was archived by the owner on Apr 3, 2025. It is now read-only.

Commit ef23e63

Browse files
febbrarotonivdv
authored andcommitted
terminate the prop_network_id in grep so it is not overly greedy (#72)
1 parent f760337 commit ef23e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docker-machine-nfs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ lookupMandatoryProperties ()
311311
fi
312312

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

0 commit comments

Comments
 (0)