Skip to content

Commit

Permalink
Pass environment variables to cmd.
Browse files Browse the repository at this point in the history
  • Loading branch information
didip committed Jun 5, 2016
1 parent 84d49f9 commit cde6d17
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 @@ -20,6 +20,7 @@ func setupMySQLDatabase(fullpath string) {

// Bootstrap databases.
cmd := exec.Command("bash", "scripts/db-bootstrap")
cmd.Env = os.Environ()
cmd.Dir = fullpath
output, _ = cmd.CombinedOutput()
log.Print(string(output))
Expand All @@ -33,6 +34,7 @@ func setupPGDatabase(fullpath string) {

// Bootstrap databases.
cmd := exec.Command("bash", "scripts/db-bootstrap")
cmd.Env = os.Environ()
cmd.Dir = fullpath
output, _ = cmd.CombinedOutput()
log.Print(string(output))
Expand Down

0 comments on commit cde6d17

Please sign in to comment.