mirror of
https://github.com/jkl1337/duplicacy.git
synced 2026-01-06 21:54:38 -06:00
Storage name can't be 'ssh' otherwise the ssh password of the default storage nad the storage password of the 'ssh' storage will share the same keychain entry
This commit is contained in:
@@ -223,6 +223,11 @@ func configRepository(context *cli.Context, init bool) {
|
||||
storageName = context.Args()[0]
|
||||
snapshotID = context.Args()[1]
|
||||
storageURL = context.Args()[2]
|
||||
|
||||
if strings.ToLower(storageName) == "ssh" {
|
||||
duplicacy.LOG_ERROR("PREFERENCE_INVALID", "'%s' is an invalid storage name", storageName)
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
var repository string
|
||||
|
||||
Reference in New Issue
Block a user