Skip to content

Commit

Permalink
修复错误
Browse files Browse the repository at this point in the history
  • Loading branch information
chenmozhijin committed Sep 22, 2024
1 parent 2c0c90d commit 4287a8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion build_helper/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,8 @@ def base_builds(cfg: dict) -> None:
openwrt.download_source("target/download")
logger.info("开始编译内核...")
if tmp_ccache_path:
shutil.rmtree(ccache_path)
if os.path.exists(ccache_path):
shutil.rmtree(ccache_path)
os.replace(tmp_ccache_path.name, ccache_path)
tmp_ccache_path.cleanup()
openwrt.make("target/compile")
Expand Down

0 comments on commit 4287a8d

Please sign in to comment.