mirror of
https://github.com/restic/restic.git
synced 2025-08-23 01:07:36 +00:00
fix: add string.Lower for insenstive includes and excludes read from file
This commit is contained in:
@@ -201,6 +201,10 @@ func runRestore(ctx context.Context, opts RestoreOptions, gopts GlobalOptions,
|
||||
return err
|
||||
}
|
||||
|
||||
for i, str := range patternsFromFile {
|
||||
patternsFromFile[i] = strings.ToLower(str)
|
||||
}
|
||||
|
||||
iexcludePatternsFromFile := filter.ParsePatterns(patternsFromFile)
|
||||
insensitiveExcludePatterns = append(insensitiveExcludePatterns, iexcludePatternsFromFile...)
|
||||
}
|
||||
@@ -235,6 +239,10 @@ func runRestore(ctx context.Context, opts RestoreOptions, gopts GlobalOptions,
|
||||
return err
|
||||
}
|
||||
|
||||
for i, str := range patternsFromFile {
|
||||
patternsFromFile[i] = strings.ToLower(str)
|
||||
}
|
||||
|
||||
includePatternsFromFile := filter.ParsePatterns(patternsFromFile)
|
||||
includePatterns = append(includePatterns, includePatternsFromFile...)
|
||||
}
|
||||
|
Reference in New Issue
Block a user