fix(config): do not resolve empty config

relates to https://github.com/JanDeDobbeleer/oh-my-posh/discussions/1518
This commit is contained in:
Jan De Dobbeleer 2021-12-30 22:27:42 +01:00 committed by Jan De Dobbeleer
parent 9b15054378
commit 6d67b147e4

View file

@ -177,7 +177,7 @@ func (env *environment) init(args *args) {
}
func (env *environment) resolveConfigPath() {
if env.args == nil || env.args.Config == nil {
if env.args == nil || env.args.Config == nil || len(*env.args.Config) == 0 {
return
}
configFile := *env.args.Config