Skip to content

Commit 63da331

Browse files
chore: try always running exec for "sh -c" in engine
1 parent feb7741 commit 63da331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/engine/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func (e *Engine) newCommand(ctx context.Context, extraEnv []string, tool types.T
328328
}
329329

330330
if useShell {
331-
args = append([]string{"/bin/sh", "-c"}, strings.Join(args, " "))
331+
args = append([]string{"/bin/sh", "-c"}, "exec "+strings.Join(args, " "))
332332
} else {
333333
args[0] = env.Lookup(envvars, args[0])
334334
}

0 commit comments

Comments
 (0)