From 87a93e84acdfce67163f9ca1ff1794390e1c1ec3 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Fri, 8 Jun 2018 13:14:55 -0700 Subject: [PATCH] sh -c to execute command to accomodate communicator change --- builder/amazon/chroot/run_local_commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/amazon/chroot/run_local_commands.go b/builder/amazon/chroot/run_local_commands.go index 4d5b0f75c..fc1c01e2b 100644 --- a/builder/amazon/chroot/run_local_commands.go +++ b/builder/amazon/chroot/run_local_commands.go @@ -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 {