mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
fix(config): use extension of remote config
This commit is contained in:
parent
1df98df6a6
commit
4024632781
|
@ -289,7 +289,8 @@ func (env *Shell) resolveConfigPath() {
|
|||
|
||||
func (env *Shell) downloadConfig(location string) error {
|
||||
defer env.Trace(time.Now(), "downloadConfig", location)
|
||||
configPath := filepath.Join(env.CachePath(), "config.omp.json")
|
||||
ext := filepath.Ext(location)
|
||||
configPath := filepath.Join(env.CachePath(), "config.omp"+ext)
|
||||
cfg, err := env.HTTPRequest(location, nil, 5000)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Reference in a new issue