This commit is contained in:
alessio 2017-04-15 10:50:49 +02:00
parent b1d3486324
commit 09534473bb

View File

@ -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!")
}
}