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

@@ -44,6 +44,18 @@ func dlJSON(url string) (GithubRelease, error) {
return parsed, nil
}
func Uninstall(restic bool) error {
if err := os.Remove(path.Join(INSTALL_PATH, "autorestic")); err != nil {
fmt.Println(err)
}
if restic {
if err := os.Remove(path.Join(INSTALL_PATH, "restic")); err != nil {
fmt.Println(err)
}
}
return nil
}
func InstallRestic() error {
installed := internal.CheckIfCommandIsCallable("restic")
if installed {