소스 검색

fix misuse of variables

zyx 5 년 전
부모
커밋
9eb72c5db0
2개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 3 3
      worker/rsync_provider.go
  2. 3 3
      worker/two_stage_rsync_provider.go

+ 3 - 3
worker/rsync_provider.go

@@ -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{

+ 3 - 3
worker/two_stage_rsync_provider.go

@@ -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"