Skip to content

Commit 5df8ee2

Browse files
committed
fix: ignore fs.rmsync error
1 parent 997b68c commit 5df8ee2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/utils.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ export async function runAndRestart(message: string, fullRestart: boolean, actio
6060
logError('Fail to execute action', error)
6161
success = false
6262
} finally {
63-
fs.rmSync(lockFile)
63+
try {
64+
fs.rmSync(lockFile)
65+
} catch {}
6466
}
6567
} catch (err) {
6668
if (err instanceof Error) {

0 commit comments

Comments
 (0)