This commit is contained in:
郑明仁 2019-09-28 11:22:45 +08:00
parent 4645187f81
commit bf860277cd
1 changed files with 1 additions and 1 deletions

View File

@ -639,7 +639,7 @@ public class GameService {
String tpiScript = tpmScript.replace("WORKSPACE", TpUtils.buildTpiRepoPath(tpiWorkspace, tpiRepoName));
try {
// 写脚本到工作空间目录下
FileUtils.deleteQuietly(new File(tpiWorkspace + File.separator + "evaluate.sh"));
// FileUtils.deleteQuietly(new File(tpiWorkspace + File.separator + "evaluate.sh"));
FileUtils.writeStringToFile(new File(tpiWorkspace + File.separator + "evaluate.sh"), tpiScript, "UTF-8");
} catch (Exception e) {
logger.error("生成TPI评测脚本失败!{}", e);