Fix: parse external-ui
This commit is contained in:
parent
95dd43a5ed
commit
a3fee826f1
1 changed files with 7 additions and 5 deletions
|
@ -153,12 +153,14 @@ func parseGeneral(cfg *rawConfig) (*General, error) {
|
||||||
mode := cfg.Mode
|
mode := cfg.Mode
|
||||||
logLevel := cfg.LogLevel
|
logLevel := cfg.LogLevel
|
||||||
|
|
||||||
if !filepath.IsAbs(externalUI) {
|
if externalUI != "" {
|
||||||
externalUI = filepath.Join(C.Path.HomeDir(), externalUI)
|
if !filepath.IsAbs(externalUI) {
|
||||||
}
|
externalUI = filepath.Join(C.Path.HomeDir(), externalUI)
|
||||||
|
}
|
||||||
|
|
||||||
if _, err := os.Stat(externalUI); os.IsNotExist(err) {
|
if _, err := os.Stat(externalUI); os.IsNotExist(err) {
|
||||||
return nil, fmt.Errorf("external-ui: %s not exist", externalUI)
|
return nil, fmt.Errorf("external-ui: %s not exist", externalUI)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
general := &General{
|
general := &General{
|
||||||
|
|
Loading…
Reference in a new issue