src: add sync before umount

pull/1358/head
Aditya Maru 11 months ago
parent 75e9b3f8b2
commit 2331ad873b

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

@ -378,6 +378,8 @@ actionsToolkit.run(
}
}
try {
// Run sync to flush any pending writes before unmounting.
await execAsync('sync');
const {stdout: mountOutput} = await execAsync(`mount | grep ${mountPoint}`);
if (mountOutput) {
for (let attempt = 1; attempt <= 3; attempt++) {

Loading…
Cancel
Save