Make path and homedir related logic more robust

Add ability to pass OONI_HOME environment variable
This commit is contained in:
Arturo Filastò
2018-05-21 17:33:59 -07:00
parent e0ac7b337b
commit c620bc9726
5 changed files with 32 additions and 23 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ type Controller struct {
msmtPath string // XXX maybe we can drop this and just use a temporary file
}
func getCaBundlePath() {
func getCaBundlePath() string {
path := os.Getenv("SSL_CERT_FILE")
if path != "" {
return path