Skip to content

Commit

Permalink
fix: use os envs as a default environ for cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas committed Sep 14, 2023
1 parent d95be38 commit 3ae01cd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion start.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package pty

import (
"context"
"os"
"os/exec"
)

Expand Down Expand Up @@ -50,7 +51,7 @@ func CommandContext(ctx context.Context, name string, arg ...string) *Cmd {
Context: ctx,
Path: name,
Args: append([]string{name}, arg...),
Env: make([]string, 0),
Env: os.Environ(),
}
}

Expand Down

0 comments on commit 3ae01cd

Please sign in to comment.