summaryrefslogtreecommitdiff
path: root/cmd/ponzu/add.go
diff options
context:
space:
mode:
authorOllie Phillips <oliver@eantics.co.uk>2017-02-24 18:01:57 +0000
committerOllie Phillips <oliver@eantics.co.uk>2017-02-24 18:01:57 +0000
commit28c360a44d93e55aec2625fa83e62f2b2816d534 (patch)
treed80df5587741ea24d72c57ba0a02ef60d0c7bc18 /cmd/ponzu/add.go
parentdd039300e8b54c78b4a7c9cb0c576c05bc5b62cd (diff)
missing src in the src path, nothing wrong with the destination and prob don't need mkdir
Diffstat (limited to 'cmd/ponzu/add.go')
-rw-r--r--cmd/ponzu/add.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/cmd/ponzu/add.go b/cmd/ponzu/add.go
index 7107454..0573a99 100644
--- a/cmd/ponzu/add.go
+++ b/cmd/ponzu/add.go
@@ -42,15 +42,19 @@ func getAddon(args []string) error {
addError(err)
}
- src := filepath.Join(gopath, addonPath)
+ src := filepath.Join(gopath, "src", addonPath)
dest := filepath.Join(pwd, "addons", addonPath)
log.Println(dest)
err = os.Mkdir(dest, os.ModeDir|os.ModePerm)
- err = copyAll(src, dest)
if err != nil {
addError(err)
}
+ err = copyAll(src, dest)
+ if err != nil {
+ log.Println(err)
+ //addError(err)
+ }
return nil
}