From 395ac029444e911310addcc14edb2c112b075087 Mon Sep 17 00:00:00 2001 From: asoseil Date: Sun, 5 Nov 2017 21:23:32 +0100 Subject: [PATCH] fix path --- cmd.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmd.go b/cmd.go index 18515ba..f4d5c91 100644 --- a/cmd.go +++ b/cmd.go @@ -57,9 +57,13 @@ func (r *realize) clean() error { // Add a new project func (r *realize) add(p *cli.Context) error { + path, err := filepath.Abs(p.String("path")) + if err != nil{ + return err + } project := Project{ Name: filepath.Base(filepath.Clean(p.String("path"))), - Path: filepath.Clean(p.String("path")), + Path: path, Cmds: Cmds{ Vet: Cmd{ Status: p.Bool("vet"),