mirror of
https://gitee.com/energye/energy.git
synced 2024-12-02 11:47:37 +08:00
command-line: 修复install初始化默认参数问题
This commit is contained in:
parent
ee828c59c8
commit
4b7c01714f
4
cmd/internal/env/env_posix.go
vendored
4
cmd/internal/env/env_posix.go
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user