Fix 'grep: invalid character range' error on macOS

pull/5647/head
Thomas Stromberg 2019-10-17 13:09:05 -07:00
parent 554f553c9e
commit b5f071d67f
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ if type -P virsh; then
fi
if type -P vboxmanage; then
for guid in $(vboxmanage list vms | grep -Eo '\{[-a-Z0-9]+\}'); do
for guid in $(vboxmanage list vms | grep -Eo '\{[a-zA-Z0-9-]+\}'); do
echo "- Removing stale VirtualBox VM: $guid"
vboxmanage startvm "${guid}" --type emergencystop || true
vboxmanage unregistervm "${guid}" || true