current state

This commit is contained in:
2021-04-12 10:55:57 +02:00
parent d293e93fa8
commit 640b60c47f
11 changed files with 113 additions and 22 deletions

View File

@@ -16,7 +16,6 @@ limitations under the License.
package cmd
import (
"errors"
"fmt"
"github.com/cupcakearmy/autorestic/internal"
@@ -29,10 +28,6 @@ var checkCmd = &cobra.Command{
Use: "check",
Short: "Check if everything is setup",
Run: func(cmd *cobra.Command, args []string) {
if !internal.CheckIfResticIsCallable() {
CheckErr(errors.New("restic is not callable. Install: https://restic.readthedocs.io/en/stable/020_installation.html"))
}
err := lock.Lock()
CheckErr(err)
defer lock.Unlock()