mirror of
https://github.com/nicotsx/zerobyte.git
synced 2025-12-10 12:10:51 +01:00
fix(mounts): use bun shell instead of execFile
This commit is contained in:
@@ -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 ?? "{}");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user