mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2026-04-02 20:05:23 +00:00
fix self update path (#190)
This commit is contained in:
@@ -16,6 +16,7 @@ import (
|
||||
"github.com/blang/semver/v4"
|
||||
"github.com/cupcakearmy/autorestic/internal"
|
||||
"github.com/cupcakearmy/autorestic/internal/colors"
|
||||
"github.com/cupcakearmy/autorestic/internal/flags"
|
||||
)
|
||||
|
||||
const INSTALL_PATH = "/usr/local/bin"
|
||||
@@ -129,7 +130,7 @@ func InstallRestic() error {
|
||||
|
||||
func upgradeRestic() error {
|
||||
_, _, err := internal.ExecuteCommand(internal.ExecuteOptions{
|
||||
Command: "restic",
|
||||
Command: flags.RESTIC_BIN,
|
||||
}, "self-update")
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user