mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
parent
54e3a07953
commit
60fd1d08eb
|
@ -83,7 +83,7 @@ func (cfg *Config) exitWithError(err error) {
|
||||||
func LoadConfig(env environment.Environment) *Config {
|
func LoadConfig(env environment.Environment) *Config {
|
||||||
cfg := loadConfig(env)
|
cfg := loadConfig(env)
|
||||||
// only migrate automatically when the switch isn't set
|
// only migrate automatically when the switch isn't set
|
||||||
if !env.Flags().Migrate && cfg.Version != configVersion {
|
if !env.Flags().Migrate && cfg.Version < configVersion {
|
||||||
cfg.BackupAndMigrate(env)
|
cfg.BackupAndMigrate(env)
|
||||||
}
|
}
|
||||||
return cfg
|
return cfg
|
||||||
|
|
Loading…
Reference in a new issue