From 7a11bbc3c0b392e0aa1ab7adc3229e859294fffe Mon Sep 17 00:00:00 2001 From: Ollie Phillips Date: Fri, 24 Feb 2017 17:38:37 +0000 Subject: missed present directory from dest path, removed logging --- cmd/ponzu/add.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/cmd/ponzu/add.go b/cmd/ponzu/add.go index f1b6cf5..579f65b 100644 --- a/cmd/ponzu/add.go +++ b/cmd/ponzu/add.go @@ -2,7 +2,6 @@ package main import ( "errors" - "log" "os" "os/exec" "path/filepath" @@ -42,10 +41,13 @@ func getAddon(args []string) error { // `go get` uses the first, this should parse out the first whatever the OS gopath := resolveGOPATH() + pwd, err := os.Getwd() + if err != nil { + errorFunc(err) + } + src := filepath.Join(gopath, addonPath) - log.Println(src) - dest := filepath.Join("addons", addonPath) - log.Println(dest) + dest := filepath.Join(pwd, "addons", addonPath) err = copyAll(src, dest) if err != nil { -- cgit v1.2.3