mirror of
https://github.com/tuna/tunasync.git
synced 2025-04-20 20:22:46 +00:00
fix misuse of variables
This commit is contained in:
parent
b490c22984
commit
9eb72c5db0
@ -52,13 +52,13 @@ func newRsyncProvider(c rsyncConfig) (*rsyncProvider, error) {
|
||||
provider.rsyncCmd = "rsync"
|
||||
}
|
||||
if c.rsyncEnv == nil {
|
||||
c.rsyncEnv = map[string]string{}
|
||||
provider.rsyncEnv = map[string]string{}
|
||||
}
|
||||
if c.username != "" {
|
||||
c.rsyncEnv["USER"] = c.username
|
||||
provider.rsyncEnv["USER"] = c.username
|
||||
}
|
||||
if c.password != "" {
|
||||
c.rsyncEnv["RSYNC_PASSWORD"] = c.password
|
||||
provider.rsyncEnv["RSYNC_PASSWORD"] = c.password
|
||||
}
|
||||
|
||||
options := []string{
|
||||
|
@ -71,13 +71,13 @@ func newTwoStageRsyncProvider(c twoStageRsyncConfig) (*twoStageRsyncProvider, er
|
||||
}
|
||||
|
||||
if c.rsyncEnv == nil {
|
||||
c.rsyncEnv = map[string]string{}
|
||||
provider.rsyncEnv = map[string]string{}
|
||||
}
|
||||
if c.username != "" {
|
||||
c.rsyncEnv["USER"] = c.username
|
||||
provider.rsyncEnv["USER"] = c.username
|
||||
}
|
||||
if c.password != "" {
|
||||
c.rsyncEnv["RSYNC_PASSWORD"] = c.password
|
||||
provider.rsyncEnv["RSYNC_PASSWORD"] = c.password
|
||||
}
|
||||
if c.rsyncCmd == "" {
|
||||
provider.rsyncCmd = "rsync"
|
||||
|
Loading…
x
Reference in New Issue
Block a user