mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-31 13:57:26 -08:00
fix(az): config directory folder order
This commit is contained in:
parent
99e226d167
commit
a16f18f9ec
|
@ -174,9 +174,9 @@ func (a *Az) getModuleSubscription() bool {
|
|||
|
||||
func (a *Az) findConfig(fileName string) (string, error) {
|
||||
configDirs := []string{
|
||||
a.env.Getenv("AZURE_CONFIG_DIR"),
|
||||
filepath.Join(a.env.Home(), ".azure"),
|
||||
filepath.Join(a.env.Home(), ".Azure"),
|
||||
a.env.Getenv("AZURE_CONFIG_DIR"),
|
||||
}
|
||||
for _, dir := range configDirs {
|
||||
if len(dir) != 0 && a.env.HasFilesInDir(dir, fileName) {
|
||||
|
|
Loading…
Reference in a new issue