mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-09 23:28:31 +00:00
Fix: Agent output
This commit is contained in:
@@ -293,6 +293,9 @@ func ExecuteCommandWithTimeout(command string, timeout int64) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
cmd := exec.CommandContext(ctx, shell[0], shell[1], command)
|
cmd := exec.CommandContext(ctx, shell[0], shell[1], command)
|
||||||
|
cmd.Stdin = os.Stdin
|
||||||
|
cmd.Stdout = os.Stdout
|
||||||
|
cmd.Stderr = os.Stderr
|
||||||
|
|
||||||
if err := cmd.Run(); err != nil {
|
if err := cmd.Run(); err != nil {
|
||||||
if exitError, ok := err.(*exec.ExitError); ok { // type assertion
|
if exitError, ok := err.(*exec.ExitError); ok { // type assertion
|
||||||
|
|||||||
Reference in New Issue
Block a user