command-line: 修复install初始化默认参数问题

This commit is contained in:
yanghy 2023-09-17 18:10:24 +08:00
parent ee828c59c8
commit 4b7c01714f

View File

@ -102,8 +102,7 @@ func envfiles() (result []string) {
}
func SourceEnvFiles() {
var envFiles = envfiles()
term.Logger.Info("Refresh Environment Variables source: " + strings.Join(envFiles, " "))
term.Logger.Info("Refresh Environment Variables")
cmd := toolsCommand.NewCMD()
cmd.IsPrint = false
defer cmd.Close()
@ -112,6 +111,7 @@ func SourceEnvFiles() {
term.Logger.Error(err.Error())
return
}
var envFiles = envfiles()
for _, file := range envFiles {
var fp = filepath.Join(homeDir, file)
// bash