Skip to content
This repository has been archived by the owner on Jun 16, 2020. It is now read-only.

Commit

Permalink
Inherit environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nbedos committed Jan 9, 2020
1 parent 576b6e6 commit a4392aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions providers/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ func token(token string, process []string) (string, error) {
cmd := exec.Command(process[0], process[1:]...)
cmd.Stdin = os.Stdin
cmd.Stderr = os.Stderr
cmd.Env = os.Environ()
bs, err := cmd.Output()
return strings.Trim(string(bs), "\r\n"), err
}
Expand Down

0 comments on commit a4392aa

Please sign in to comment.