Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
In rsync escape all $DW_ environment variables
Browse files Browse the repository at this point in the history
Not just the per job buffer one.
  • Loading branch information
JohnGarbutt committed Sep 10, 2019
1 parent 346bf8b commit 427a06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/filesystem_impl/copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ func generateRsyncCmd(session datamodel.Session, request datamodel.DataCopyReque
}

func escapePath(path string) string {
return strings.Replace(path, "$DW_JOB_STRIPED", "\\$DW_JOB_STRIPED", 1)
return strings.Replace(path, "$DW_", "\\$DW_", 1)
}

0 comments on commit 427a06f

Please sign in to comment.