diff --git a/cmd/godotenv/cmd.go b/cmd/godotenv/cmd.go index 555dc1e..04a9f64 100644 --- a/cmd/godotenv/cmd.go +++ b/cmd/godotenv/cmd.go @@ -45,7 +45,7 @@ example // take rest of args and "exec" them cmd := args[0] - cmdArgs := args[1:len(args)] + cmdArgs := args[1:] err := godotenv.Exec(envFilenames, cmd, cmdArgs) if err != nil {