Skip to content

Commit e8036fe

Browse files
fix: avoid interpolating structured command args into bash -c
1 parent 4f6d376 commit e8036fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/execute/execute.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func (c Command) Run() error {
5050

5151
} else {
5252
binary := strings.Trim(c.Command, "'\"")
53-
args := append([]string{"-c", `"$0" "$@"`, binary}, c.Args...)
53+
args := append([]string{"-c", `exec "$0" "$@"`, binary}, c.Args...)
5454
cmd = exec.Command("bash", args...)
5555
}
5656

0 commit comments

Comments
 (0)