🎨 代码优化

pull/73/head
ruibaby 2018-12-30 12:04:55 +08:00
parent a42882fcb0
commit d2d76cf575
1 changed files with 1 additions and 1 deletions

View File

@ -216,7 +216,7 @@ public class ThemeController extends BaseController {
try { try {
final File basePath = new File(ResourceUtils.getURL("classpath:").getPath()); final File basePath = new File(ResourceUtils.getURL("classpath:").getPath());
final File themePath = new File(basePath.getAbsolutePath(), "templates/themes"); final File themePath = new File(basePath.getAbsolutePath(), "templates/themes");
final String cmdResult = RuntimeUtil.execForStr("cd " + themePath.getAbsolutePath() + "/" + themeName, "git pull"); final String cmdResult = RuntimeUtil.execForStr("cd " + themePath.getAbsolutePath() + "/" + themeName + " && git pull");
if (NOT_FOUND_GIT.equals(cmdResult)) { if (NOT_FOUND_GIT.equals(cmdResult)) {
return new JsonResult(ResultCodeEnum.FAIL.getCode(), localeMessageUtil.getMessage("code.admin.theme.no-git")); return new JsonResult(ResultCodeEnum.FAIL.getCode(), localeMessageUtil.getMessage("code.admin.theme.no-git"));
} }