#47 fixed
This commit is contained in:
parent
b1d3486324
commit
09534473bb
|
@ -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!")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue