From 09534473bb2a6ea65cc90b6f42b39b7d528c4711 Mon Sep 17 00:00:00 2001 From: alessio Date: Sat, 15 Apr 2017 10:50:49 +0200 Subject: [PATCH] #47 fixed --- watcher/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watcher/utils.go b/watcher/utils.go index 659feb4..2e07d57 100644 --- a/watcher/utils.go +++ b/watcher/utils.go @@ -23,7 +23,7 @@ func argsParam(params *cli.Context) []string { // Duplicates check projects with same name or same combinations of main/path func duplicates(value Project, arr []Project) (Project, error) { for _, val := range arr { - if value.Path == val.Path { + if value.Path == val.Path && val.Name == value.Name { return val, errors.New("There is already a project for '" + val.Path + "'. Check your config file!") } }