diff --git a/cmd/cosmos-sdk-cli/cmd/init.go b/cmd/cosmos-sdk-cli/cmd/init.go index 5576ac2f3..fdd57ae99 100644 --- a/cmd/cosmos-sdk-cli/cmd/init.go +++ b/cmd/cosmos-sdk-cli/cmd/init.go @@ -146,6 +146,7 @@ benchmark: func setupBasecoinWorkspace(projectName string, remoteProjectPath string) { projectPath := resolveProjectPath(remoteProjectPath) fmt.Println("Configuring your project in " + projectPath) + // Check if the projectPath already exists or not if _, err := os.Stat(projectPath); os.IsNotExist(err) { copyBasecoinTemplate(projectName, projectPath, remoteProjectPath) createGopkg(projectPath)