1
0
Fork 1
mirror of https://github.com/vbatts/tar-split.git synced 2024-11-16 21:38:38 +00:00

Merge pull request #39 from stephen679/no_duplicate_keywords

main: don't dupliate keywords
This commit is contained in:
Vincent Batts 2016-07-26 11:35:43 -04:00 committed by GitHub
commit e31036f7e3

View file

@ -102,7 +102,11 @@ func main() {
} }
// -K <keywords> // -K <keywords>
if *flAddKeywords != "" { if *flAddKeywords != "" {
currentKeywords = append(currentKeywords, splitKeywordsArg(*flAddKeywords)...) for _, kw := range splitKeywordsArg(*flAddKeywords) {
if !inSlice(kw, currentKeywords) {
currentKeywords = append(currentKeywords, kw)
}
}
} }
// -f <file> // -f <file>