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

command-line: fix install 复制命令行工具到Go ROOT/bin

上级 e238bfa4
......@@ -198,7 +198,7 @@ func copyEnergyCMD(goRoot string) {
}
energyBin := filepath.Join(goRoot, "bin", energyName)
if tools.IsExist(energyBin) {
os.RemoveAll(energyBin)
os.Remove(energyBin)
}
src, err := os.Open(exe)
if err != nil {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册