Fix windows binary check for chef provisioner

This commit is contained in:
Brian Cain 2019-06-17 14:06:03 -07:00
parent d55f8d3496
commit 6e4eb66cb1
No known key found for this signature in database
GPG Key ID: 9FC4639B2E4510A0
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ module VagrantPlugins
# Checks for the existence of chef binary and error if it
# doesn't exist.
if windows?
command = "if ((&'#{binary}' -v) -Match 'Chef: *'){ exit 0 } else { exit 1 }"
command = "if ((&'#{binary}' -v) -Match 'Chef*'){ exit 0 } else { exit 1 }"
else
command = "sh -c 'command -v #{binary}'"
end