Skip to content
Permalink
Browse files

Fix windows binary check for chef provisioner

  • Loading branch information...
briancain committed Jun 17, 2019
1 parent d55f8d3 commit 6e4eb66cb1a32429eb449ce9bfeb84c65a7e7404
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/provisioners/chef/provisioner/base.rb
@@ -69,7 +69,7 @@ def verify_binary(binary)
# 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

0 comments on commit 6e4eb66

Please sign in to comment.
You can’t perform that action at this time.