mirror of
https://github.com/restic/restic.git
synced 2024-12-23 08:16:36 +00:00
fix: add string.Lower for insenstive includes and excludes read from file
This commit is contained in:
parent
b02117ef0b
commit
7d5dd6db66
1 changed files with 8 additions and 0 deletions
|
@ -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...)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue