mitchellh/packer — pull request #1111 by njhartwell (2014-05-02 16:26:35+00:00)
Title: Appending wildcard to src causes problems

It appears that the desired effect was to support
src = "dir" -> dest/dir
src = "dir/" -> dest

but cp -R already handles this, provided the trailing slash does not
get consumed by the shell. Adding single quotes prevents that.

The wildcard causes problems when multiple files match the
shell glob, e.g.

UploadDir("/tmp", "./salt*", [])

where my working dir contains
- salt
- salt-foo

will error.