mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-11-10 04:54:03 -08:00
fix(config): do not resolve empty config
relates to https://github.com/JanDeDobbeleer/oh-my-posh/discussions/1518
This commit is contained in:
parent
9b15054378
commit
6d67b147e4
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue