Fix windows binary check for chef provisioner
This commit is contained in:
parent
d55f8d3496
commit
6e4eb66cb1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue