mirror of
https://github.com/octoleo/restic.git
synced 2025-01-24 15:48:25 +00:00
fix: add string.Lower for insenstive includes and excludes read from file
This commit is contained in:
parent
b02117ef0b
commit
7d5dd6db66
@ -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…
x
Reference in New Issue
Block a user