mirror of
https://github.com/Koenkk/zigbee-OTA.git
synced 2026-06-24 15:19:52 +00:00
This reverts commit 293b99e011.
This commit is contained in:
@@ -19,7 +19,6 @@ const manufacturerNameLookup = {
|
||||
4151: 'Eurotronic',
|
||||
4678: 'Danfoss',
|
||||
4687: 'Gledopto',
|
||||
4447: 'Xiaomi',
|
||||
};
|
||||
|
||||
const main = async () => {
|
||||
@@ -99,14 +98,7 @@ const main = async () => {
|
||||
indexJSON[index] = entry;
|
||||
|
||||
if (entry.path && entry.path !== destination) {
|
||||
try {
|
||||
fs.unlinkSync(path.resolve(entry.path));
|
||||
} catch (err) {
|
||||
if (err && err.code != 'ENOENT') {
|
||||
console.error("Error in call to fs.unlink", err);
|
||||
throw err;
|
||||
}
|
||||
}
|
||||
fs.unlinkSync(entry.path);
|
||||
}
|
||||
} else {
|
||||
console.log(`Added new entry (${JSON.stringify(entry)})`);
|
||||
|
||||
Reference in New Issue
Block a user