zhangmeng
2020-01-19 3e742a6e142d3e63374db3cad7f6dc95b48b13bc
if canot find sdk runtime path skip this sdk
1个文件已修改
20 ■■■■■ 已修改文件
app/master/master.go 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
app/master/master.go
@@ -59,15 +59,19 @@
            continue
        }
        envs := strings.Split(cfg.Env, ":")
        normal := true
        for _, v := range envs {
            if !util.IsFileExist(v) {
                normal = false
        if len(cfg.Env) > 0 {
            envs := strings.Split(cfg.Env, ":")
            normal := true
            for _, v := range envs {
                if !util.IsFileExist(v) {
                    normal = false
                    break
                }
            }
        }
        if !normal {
            logo.Infoln("Can't Find Runtime Path, Skip It: ", file)
            if !normal {
                logo.Infoln("Can't Find Runtime Path, Skip It: ", file)
                continue
            }
        }
        logo.Infoln(file, " CONFIG: ", cfg)