Skip to content

Commit

Permalink
Merge pull request #221 from articulate/fix/add-base-env
Browse files Browse the repository at this point in the history
fix: include base env vars during exec
  • Loading branch information
mloberg authored May 21, 2024
2 parents 621e3bc + 7974dfa commit 4381910
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,8 @@ func run(name string, args, env []string) error {
return fmt.Errorf("could not find %s: %w", name, err)
}

env = append(os.Environ(), env...)

if err := syscall.Exec(bin, args, env); err != nil {
return fmt.Errorf("could not execute %s %s: %w", name, strings.Join(args, " "), err)
}
Expand Down

0 comments on commit 4381910

Please sign in to comment.