sh -c to execute command to accomodate communicator change

This commit is contained in:
Megan Marsh 2018-06-08 13:14:55 -07:00
parent 1809975644
commit 87a93e84ac
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ func RunLocalCommands(commands []string, wrappedCommand CommandWrapper, ctx inte
ui.Say(fmt.Sprintf("Executing command: %s", command))
comm := &sl.Communicator{
ExecuteCommand: []string{command},
ExecuteCommand: []string{"sh", "-c", command},
}
cmd := &packer.RemoteCmd{Command: command}
if err := cmd.StartWithUi(comm, ui); err != nil {