cmd/restic: implement lock refresh

This commit is contained in:
Alexander Neumann committed 2015-07-12 22:10:01 +02:00
1 parent 781ec903e8
commit 159b9e80c4
3 files changed
+70 -18

No files matched your search

+6
View File
@@ -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)
}