Skip to content

Commit

Permalink
fix config extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
wkloucek committed Apr 19, 2022
1 parent 45f49ae commit 3dd7d92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/helpers/configenvextractor.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ func GenerateIntermediateCode(templatePath string, intermediateCodePath string,

func RunIntermediateCode(intermediateCodePath string) {
fmt.Println("Running intermediate go code for " + intermediateCodePath)
os.Setenv("HOME", "~") // don't write the current absolute user directory for the documentation
os.Setenv("OCIS_BASE_DATA_PATH", "~/.ocis")
os.Setenv("OCIS_CONFIG_DIR", "~/.ocis/config")
out, err := exec.Command("go", "run", intermediateCodePath).Output()
if err != nil {
log.Fatal(err)
Expand Down

0 comments on commit 3dd7d92

Please sign in to comment.