resolve windows path issue on realize add

This commit is contained in:
Aeneas Rekkas (arekkas) 2016-12-21 23:31:36 +01:00
parent 9e7a8b7393
commit 2981a6ebc5

View File

@ -28,7 +28,7 @@ func (h *Blueprint) Run() error {
func (h *Blueprint) Add(p *cli.Context) error { func (h *Blueprint) Add(p *cli.Context) error {
project := Project{ project := Project{
Name: h.name(p), Name: h.name(p),
Path: filepath.Clean(p.String("path")), Path: strings.Replace(filepath.Clean(p.String("path")), "\\", "/", -1),
Build: p.Bool("build"), Build: p.Bool("build"),
Bin: !p.Bool("no-bin"), Bin: !p.Bool("no-bin"),
Run: !p.Bool("no-run"), Run: !p.Bool("no-run"),