File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"os/exec"
6
6
"time"
7
+ "syscall"
8
+ "os"
7
9
8
10
"github.com/null93/aws-knox/sdk/credentials"
9
11
"github.com/null93/aws-knox/sdk/picker"
@@ -165,13 +167,15 @@ var connectCmd = &cobra.Command{
165
167
fmt .Sprintf (`{"Target": "%s"}` , connectInstanceId ),
166
168
fmt .Sprintf ("https://ssm.%s.amazonaws.com" , role .Region ),
167
169
)
168
- command .Stdin = cmd .InOrStdin ()
169
- command .Stdout = cmd .OutOrStdout ()
170
- command .Stderr = cmd .ErrOrStderr ()
170
+ command .Stdin = os .Stdin
171
+ command .Stdout = os .Stdout
172
+ command .Stderr = os .Stderr
173
+ command .SysProcAttr = & syscall.SysProcAttr { Setpgid : true , Foreground : true }
171
174
err = command .Run ()
172
175
if err != nil {
173
176
ExitWithError (20 , "failed to run session-manager-plugin" , err )
174
177
}
178
+ fmt .Println ("EXITED" )
175
179
},
176
180
}
177
181
You can’t perform that action at this time.
0 commit comments