mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-02 19:54:54 -06:00
Refactor variable names and revert shadow copy path computation
This commit is contained in:
@@ -80,9 +80,9 @@ func checkHostKey(repository string, hostname string, remote net.Addr, key ssh.P
|
||||
if len(repository) == 0 {
|
||||
return nil
|
||||
}
|
||||
|
||||
duplicacyDirectory := GetDotDuplicacyPathName(repository)
|
||||
hostFile := path.Join(duplicacyDirectory, "knowns_hosts")
|
||||
|
||||
preferencePath := GetDuplicacyPreferencePath(repository)
|
||||
hostFile := path.Join(preferencePath, "knowns_hosts")
|
||||
file, err := os.OpenFile(hostFile, os.O_RDWR | os.O_CREATE, 0600)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user