mirror of
https://github.com/octoleo/restic.git
synced 2024-12-01 17:23:57 +00:00
Fix error message on Windows
This commit is contained in:
parent
c0572ca15f
commit
5b95bb7059
2
internal/cache/dir.go
vendored
2
internal/cache/dir.go
vendored
@ -32,7 +32,7 @@ func xdgCacheDir() (string, error) {
|
|||||||
func windowsCacheDir() (string, error) {
|
func windowsCacheDir() (string, error) {
|
||||||
appdata := os.Getenv("LOCALAPPDATA")
|
appdata := os.Getenv("LOCALAPPDATA")
|
||||||
if appdata == "" {
|
if appdata == "" {
|
||||||
return "", errors.New("unable to locate cache directory (APPDATA unset)")
|
return "", errors.New("unable to locate cache directory (LOCALAPPDATA unset)")
|
||||||
}
|
}
|
||||||
return filepath.Join(appdata, "restic"), nil
|
return filepath.Join(appdata, "restic"), nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user