Commit 3f136702 authored by ale's avatar ale

Fix restic init invocation to ignore errors

parent f2ac045b
......@@ -116,8 +116,10 @@ func (r *resticRepository) Close() error {
}
func (r *resticRepository) Init(ctx context.Context) error {
// Restic init will fail the second time we run it, ignore
// errors.
return r.shell.Run(ctx, fmt.Sprintf(
"%s init --quiet",
"%s init --quiet || true",
r.resticCmd(),
))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment