修改profile文件

This commit is contained in:
bjdgyc
2021-12-28 16:39:42 +08:00
parent aadfa7b70c
commit f7c8fb8d9d
5 changed files with 41 additions and 7 deletions

View File

@@ -101,7 +101,7 @@ func initCmd() {
_, err := os.Stat(conf)
if errors.Is(err, os.ErrNotExist) {
// 没有配置文件,不做处理
return
panic(err)
}
linkViper.SetConfigFile(conf)