Support library

This commit is contained in:
knqyf263
2019-05-01 15:24:08 +09:00
parent fefe879691
commit e55ec73aba
8 changed files with 261 additions and 16 deletions

View File

@@ -266,7 +266,7 @@ func (d DockerExtractor) ExtractFiles(layer io.Reader, filenames []string) (File
// Determine if we should extract the element
extract := false
for _, s := range filenames {
if s == filePath || strings.HasPrefix(fileName, wh) {
if s == filePath || s == fileName || strings.HasPrefix(fileName, wh) {
extract = true
break
}