Skip to content

Commit f9c37d3

Browse files
committed
fixup! Fix hang when returning from shell command
1 parent bc4cb6f commit f9c37d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/commands/oscommands/cmd_obj_builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func (self *CmdObjBuilder) NewShell(commandStr string) ICmdObj {
5252
}
5353

5454
func (self *CmdObjBuilder) NewInteractiveShell(commandStr string) ICmdObj {
55-
quotedCommand := self.quotedCommandString(commandStr) + self.platform.InteractiveShellExit
55+
quotedCommand := self.quotedCommandString(commandStr + self.platform.InteractiveShellExit)
5656
cmdArgs := str.ToArgv(fmt.Sprintf("%s %s %s %s", self.platform.InteractiveShell, self.platform.InteractiveShellArg, self.platform.ShellArg, quotedCommand))
5757

5858
return self.New(cmdArgs)

0 commit comments

Comments
 (0)