fix
This commit is contained in:
parent
f8821b8982
commit
68ccbd1f69
1 changed files with 1 additions and 2 deletions
|
@ -36,12 +36,11 @@ func initConfig() {
|
|||
log.SetLevel(log.ErrorLevel)
|
||||
}
|
||||
|
||||
config.configFolder = filepath.Join(filepath.Clean(csConfig.csCliFolder))
|
||||
|
||||
csConfig := csconfig.NewCrowdSecConfig()
|
||||
if err := csConfig.GetOPT(); err != nil {
|
||||
log.Fatalf(err.Error())
|
||||
}
|
||||
config.configFolder = filepath.Join(filepath.Clean(csConfig.csCliFolder))
|
||||
|
||||
if strings.HasPrefix(config.configFolder, "~/") {
|
||||
usr, err := user.Current()
|
||||
|
|
Loading…
Reference in a new issue