fix self update path (#190)

This commit is contained in:
2022-04-27 00:43:47 +02:00
committed by GitHub
parent e43ab2dfd6
commit 985829800f
5 changed files with 12 additions and 10 deletions

View File

@@ -185,7 +185,7 @@ func CheckConfig() error {
return fmt.Errorf("config could not be loaded/found")
}
if !CheckIfResticIsCallable() {
return fmt.Errorf(`%s was not found. Install either with "autorestic install" or manually`, RESTIC_BIN)
return fmt.Errorf(`%s was not found. Install either with "autorestic install" or manually`, flags.RESTIC_BIN)
}
for name, backend := range c.Backends {
backend.name = name