fix: wrap cleanup unlinkSync in try-catch (CI)
This commit is contained in:
parent
023ebae786
commit
8d0eaafceb
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ total += replaceNum(full, pos.PRELUDE_POSITION, newPRP)
|
||||||
console.log(`total patches: ${total}`)
|
console.log(`total patches: ${total}`)
|
||||||
|
|
||||||
fs.writeFileSync(EXE, full)
|
fs.writeFileSync(EXE, full)
|
||||||
fs.unlinkSync(EXE + '.notail').catch?.(() => {})
|
try { fs.unlinkSync(EXE + '.notail') } catch {}
|
||||||
try { fs.unlinkSync(CLEAN + '.pe_only') } catch {}
|
try { fs.unlinkSync(CLEAN + '.pe_only') } catch {}
|
||||||
|
|
||||||
console.log(`done: ${EXE} = ${full.length} bytes`)
|
console.log(`done: ${EXE} = ${full.length} bytes`)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue