Skip to content

Commit

Permalink
debug globbing
Browse files Browse the repository at this point in the history
  • Loading branch information
markriggins committed Apr 5, 2016
1 parent c88a250 commit 3bae4dd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerfy.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ func main() {
log.Printf("overlay source: %s does not exist. Skipping", src)
continue
}
log.Printf("overlaying %s --> %s", src, dest)

var cmd *exec.Cmd

if strings.HasSuffix(src, "/") {
src += "*"
}

log.Printf("overlaying %s --> %s", src, dest)
if matches, err := filepath.Glob(src); err == nil {
for _, dir := range matches {
cmd = exec.Command("cp", "-rv", dir, dest)
Expand Down

0 comments on commit 3bae4dd

Please sign in to comment.