summaryrefslogtreecommitdiff
path: root/cmd/ponzu/add.go
diff options
context:
space:
mode:
authorOllie Phillips <oliver@eantics.co.uk>2017-02-24 17:38:37 +0000
committerOllie Phillips <oliver@eantics.co.uk>2017-02-24 17:38:37 +0000
commit7a11bbc3c0b392e0aa1ab7adc3229e859294fffe (patch)
treea43194650b3e59bb0256969d22fa3c5f3514283a /cmd/ponzu/add.go
parentbf695fb3c70e408b71a98f33b52d1811210fbcb9 (diff)
missed present directory from dest path, removed logging
Diffstat (limited to 'cmd/ponzu/add.go')
-rw-r--r--cmd/ponzu/add.go10
1 files 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 {