mirror of
https://github.com/restic/restic.git
synced 2026-11-28 15:26:48 +00:00
cmd/restic: implement lock refresh
This commit is contained in:
1 parent
781ec903e8
commit
159b9e80c4
3 files changed
+70
-18
No files matched your search
@@ -1,10 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/jessevdk/go-flags"
|
||||
"github.com/restic/restic"
|
||||
"github.com/restic/restic/debug"
|
||||
)
|
||||
|
||||
@@ -26,6 +28,10 @@ func main() {
|
||||
os.Exit(0)
|
||||
}
|
||||
|
||||
if restic.IsAlreadyLocked(err) {
|
||||
fmt.Fprintf(os.Stderr, "\nthe `unlock` command can be used to remove stale locks\n")
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user