fix(restic): unlock repo before trying to backup
This commit is contained in:
parent
b188a84af3
commit
e335133237
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue