mitchellh/vagrant-aws — pull request #246 by Scythril (2014-06-06 04:13:25+00:00)
Title: Removed -p switch from mkdir if communicator is WinRM

The -p switch on mkdir in sync_folders was blowing up on a box with Powershell 4. In that version, they added a new common switch called -PipelineVariable, and it causes -p to be ambiguous. I added a check on the communicator for WinRM, and removed the switch if so. It's also not needed on previous versions of Powershell since mkdir in Powershell is recursive by default (it aliases to the New-Item cmdlet), so an additional version check is unecessary.