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