Commit 921fa61a authored by Cristian Maglie's avatar Cristian Maglie

Config search now looks into ARDUINO_DIRECTORIES_DATA env too

parent 0aafda3a
......@@ -109,5 +109,11 @@ func FindConfigFileInArgsFallbackOnEnv(args []string) string {
if p, ok := os.LookupEnv("ARDUINO_CONFIG_FILE"); ok {
return p
}
if p, ok := os.LookupEnv("ARDUINO_DIRECTORIES_DATA"); ok {
return filepath.Join(p, "arduino-cli.yaml")
}
if p, ok := os.LookupEnv("ARDUINO_DATA_DIR"); ok {
return filepath.Join(p, "arduino-cli.yaml")
}
return filepath.Join(getDefaultArduinoDataDir(), "arduino-cli.yaml")
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment