fix(restic): unlock repo before trying to backup

This commit is contained in:
Nicolas Meienberger
2025-10-29 19:16:20 +01:00
parent b188a84af3
commit e335133237

View File

@@ -135,6 +135,7 @@ const backup = async (
args.push("--json");
await $`restic unlock --repo ${repoUrl}`.env(env).nothrow();
const res = await $`restic ${args}`.env(env).nothrow();
if (res.exitCode !== 0) {