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
|
# Checks for the existence of chef binary and error if it
|
||||||
# doesn't exist.
|
# doesn't exist.
|
||||||
if windows?
|
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
|
else
|
||||||
command = "sh -c 'command -v #{binary}'"
|
command = "sh -c 'command -v #{binary}'"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue