generate-docker-compose should use docker, add .sh

This commit is contained in:
nicolas.dorier
2018-05-06 21:14:24 +09:00
parent a233302043
commit 1b208b122e
6 changed files with 155 additions and 1 deletions

View File

@@ -101,11 +101,16 @@ namespace DockerGenerator
private string FindLocation(string path)
{
string directory = path;
int i = 0;
while(true)
{
if(i > 10)
throw new DirectoryNotFoundException(directory);
if(Directory.Exists(path))
return path;
path = Path.Combine("..", path);
i++;
}
}
}