Fix parsing of copy args

This commit is contained in:
Kovid Goyal
2023-02-19 19:23:32 +05:30
parent d98504e1a6
commit 041c646d46
2 changed files with 31 additions and 2 deletions

View File

@@ -180,7 +180,7 @@ func get_arcname(loc, dest, home string) (arcname string) {
}
func ParseCopyInstruction(spec string) (ans []*CopyInstruction, err error) {
args, err := shlex.Split(spec)
args, err := shlex.Split("copy " + spec)
if err != nil {
return nil, err
}