Skip to content

Commit

Permalink
handle quoting later
Browse files Browse the repository at this point in the history
  • Loading branch information
h4ck3rk3y committed Mar 18, 2024
1 parent 72538df commit 0e8ba49
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ func handleFilesToBeMovedForDockerCompose(ctx context.Context, dockerManager *do
for source, destination := range filesToBeMoved {
sourceDir := path.Dir(source) + "/*"
// TODO improve this; the first condition handles files the other folders
concatenatedFilesToBeMoved = append(concatenatedFilesToBeMoved, fmt.Sprintf("(mv %v %v || mv %v %v)", strconv.Quote(source), strconv.Quote(destination), strconv.Quote(sourceDir), strconv.Quote(destination)))
concatenatedFilesToBeMoved = append(concatenatedFilesToBeMoved, fmt.Sprintf("(mv %v %v || mv %v %v)", source, destination, sourceDir, destination))
}

concatenatedFilesToBeMovedAsStr := strings.Join(concatenatedFilesToBeMoved, " && ")
Expand Down

0 comments on commit 0e8ba49

Please sign in to comment.