Skip to content

Commit 362232e

Browse files
authored
fix: -exec handle 1st arg (#262)
1 parent 08155d6 commit 362232e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ func main() { //nolint:gocyclo,gocognit,funlen // TODO Refactor?
192192
case cfg.exec:
193193
arg0, err := exec.LookPath(flag.Arg(0))
194194
if err == nil {
195-
err = syscall.Exec(arg0, flag.Args()[1:], os.Environ()) //nolint:gosec // False positive.
195+
err = syscall.Exec(arg0, flag.Args(), os.Environ()) //nolint:gosec // False positive.
196196
}
197197
if err != nil {
198198
fatalf("Failed to run command: %s.", err)

0 commit comments

Comments
 (0)