Skip to content

Commit 0df74ce

Browse files
authored
Merge pull request #82 from j-griffith/fix_cp_args
Fix cp arg expansion bug in cloning implementation
2 parents 4b2c735 + 5a140b2 commit 0df74ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/hostpath/hostpath.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ func loadFromVolume(srcVolumeId, destPath string) error {
293293

294294
// If the source hostpath volume is empty it's a noop and we just move along, otherwise the cp call will fail with a a file stat error DNE
295295
if !isEmpty {
296-
args := []string{"-a", srcPath + "/*", destPath + "/"}
296+
args := []string{"-a", srcPath + "/.", destPath + "/"}
297297
executor := utilexec.New()
298298
out, err := executor.Command("cp", args...).CombinedOutput()
299299
if err != nil {

0 commit comments

Comments
 (0)