summaryrefslogtreecommitdiff
path: root/cmd/ponzu/options.go
diff options
context:
space:
mode:
authorSteve Manuel <nilslice@gmail.com>2016-12-18 15:47:57 -0800
committerSteve Manuel <nilslice@gmail.com>2016-12-18 15:47:57 -0800
commitfa7b9089f8ccba22b8a17bda58437eda459217b8 (patch)
treedbf01042411e57b64ac39ffd3fa4bb343a8cc2ac /cmd/ponzu/options.go
parentda2ec11664c48ba9dced011e66a13a75ed417640 (diff)
adding content dir in at proj root after its vendored
Diffstat (limited to 'cmd/ponzu/options.go')
-rw-r--r--cmd/ponzu/options.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/cmd/ponzu/options.go b/cmd/ponzu/options.go
index b22f0d2..e0fb8fc 100644
--- a/cmd/ponzu/options.go
+++ b/cmd/ponzu/options.go
@@ -150,7 +150,7 @@ func vendorCorePackages(path string) error {
return err
}
- // create a user content directory
+ // create a user content directory to be vendored
contentPath := filepath.Join(path, "content")
err = os.Mkdir(contentPath, os.ModeDir|os.ModePerm)
if err != nil {
@@ -165,6 +165,13 @@ func vendorCorePackages(path string) error {
}
}
+ // create a user content directory at project root
+ contentPath = filepath.Join(path, "content")
+ err = os.Mkdir(contentPath, os.ModeDir|os.ModePerm)
+ if err != nil {
+ return err
+ }
+
return nil
}