Skip to content

Commit

Permalink
Merge pull request #106 from articulate/feature/pwd
Browse files Browse the repository at this point in the history
fix: set PWD
  • Loading branch information
mloberg authored Nov 17, 2022
2 parents 05281f0 + 677f5b0 commit 3a86c3c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,11 @@ func main() {
}

env := NewEnvMap()
pwd, err := os.Getwd()
if err != nil {
logger.Warn().Err(err).Msg("Cannot determine PWD")
}
env.Add("PWD", pwd)

if addr := os.Getenv("CONSUL_ADDR"); addr != "" {
env.Merge(loadConsul(addr, cfg, logger))
Expand Down

0 comments on commit 3a86c3c

Please sign in to comment.