提交 432e0e3b 编写于 作者: yanghye's avatar yanghye

energy-command-line, 优化命令 install .

上级 7674c729
......@@ -43,6 +43,7 @@ type downloadInfo struct {
func Install(c *command.Config) {
// 初始配置和安装目录
initInstall(c)
// 检查环境
willInstall := checkInstallEnv(c)
var (
goRoot string
......@@ -125,8 +126,8 @@ func checkInstallEnv(c *command.Config) (result []string) {
} else {
fmt.Printf(" %s: Not installed, install %s ? (Y/n): ", name, name)
var s string
if !skip {
fmt.Scanln(&s) // 跳过输入Y,
if !skip { // 跳过输入Y,
fmt.Scanln(&s)
} else {
s = "y"
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册