!2 Fix preview mode abc file not work

Merge pull request !2 from zrg/fix_preview_0816_9_21
This commit is contained in:
openharmony_ci
2022-09-21 13:27:29 +00:00
committed by Gitee
+1 -1
View File
@@ -841,7 +841,7 @@ function writeHashJson(): void {
process.exitCode = FAIL;
break;
}
if (!fs.existsSync(abcFile)) {
if (process.env.cachePath !== undefined) {
mkdirsSync(path.dirname(abcFile));
fs.copyFileSync(cacheAbcFilePath, abcFile);
}