packer-community / winrmcp

Copy files to a remote host using WinRM
MIT License
59 stars 31 forks source link

fix hang in cleanupContent #27

Closed SwampDragons closed 7 years ago

SwampDragons commented 7 years ago

I've blatantly ripped off restoreContent's use of wait groups around stdout and stderr copying. This commit prevents the copy from hanging when a command is called with psdebug set in windows. See https://github.com/hashicorp/packer/issues/4891 for a repro case that fails before and passes after this commit.

dylanmei commented 7 years ago

LGTM