Skip to content

Commit

Permalink
Fix rechercheche exacte du nom d'une VM
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeLeroux committed Mar 16, 2018
1 parent 562e1bf commit 510da3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtualbox/vboxlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function vm_running
# return 0 if vm exists, else 1
function vm_exists
{
grep -q "$1"<<<"$(VBoxManage list vms)"
grep -q "\<$1\>"<<<"$(VBoxManage list vms)"
}

# $1 vm name
Expand Down

0 comments on commit 510da3b

Please sign in to comment.