mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-08-24 18:06:41 +00:00
fix: use C:\Program Files\backrest on both x64 and 32-bit (#200)
This commit is contained in:
@@ -247,11 +247,8 @@ func FindOrInstallResticBinary() (string, error) {
|
||||
// Check for restic installation in data directory.
|
||||
resticInstallPath := path.Join(config.DataDir(), resticBinName)
|
||||
if runtime.GOOS == "windows" {
|
||||
programFiles := os.Getenv("programfiles(x86)")
|
||||
if programFiles == "" {
|
||||
programFiles = os.Getenv("programfiles")
|
||||
}
|
||||
resticInstallPath = path.Join(programFiles, "restic", resticBinName)
|
||||
programFiles := os.Getenv("programfiles")
|
||||
resticInstallPath = path.Join(programFiles, "backrest", resticBinName)
|
||||
}
|
||||
|
||||
// Install restic if not found.
|
||||
|
||||
Reference in New Issue
Block a user