mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
Bugfix: fixed conflict
Signed-off-by: laibo102 <laibo2@huawei.com> Change-Id: Iad018bae7e24c7432ea7dd71ab8871417fe9b6ca
This commit is contained in:
+9
-11
@@ -403,19 +403,17 @@ function checkAppResourcePath(appResourcePath, config) {
|
||||
}
|
||||
|
||||
function saveAppResourcePath(appResourcePath, appResourcePathSavePath) {
|
||||
if (!projectConfig.xtsMode) {
|
||||
let isSave = false;
|
||||
if (fs.existsSync(appResourcePathSavePath)) {
|
||||
const saveContent = fs.readFileSync(appResourcePathSavePath);
|
||||
if (appResourcePath !== saveContent) {
|
||||
isSave = true;
|
||||
}
|
||||
} else {
|
||||
let isSave = false;
|
||||
if (fs.existsSync(appResourcePathSavePath)) {
|
||||
const saveContent = fs.readFileSync(appResourcePathSavePath);
|
||||
if (appResourcePath !== saveContent) {
|
||||
isSave = true;
|
||||
}
|
||||
if (isSave) {
|
||||
fs.writeFileSync(appResourcePathSavePath, appResourcePath);
|
||||
}
|
||||
} else {
|
||||
isSave = true;
|
||||
}
|
||||
if (isSave) {
|
||||
fs.writeFileSync(appResourcePathSavePath, appResourcePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user