fix(mounts): use bun shell instead of execFile

This commit is contained in:
Nicolas Meienberger
2025-11-10 06:52:14 +01:00
parent e9eeda304b
commit 2b0fea9645
7 changed files with 49 additions and 75 deletions

View File

@@ -189,7 +189,7 @@ const backup = async (
let stdout = "";
await safeSpawn({
const res = await safeSpawn({
command: "restic",
args,
env,
@@ -210,6 +210,11 @@ const backup = async (
},
});
if (res.exitCode !== 0) {
logger.error(`Restic backup failed: ${res.stderr}`);
throw new Error(`Restic backup failed: ${res.stderr}`);
}
const lastLine = stdout.trim();
const resSummary = JSON.parse(lastLine ?? "{}");