change ordering of include exclude

This commit is contained in:
Brad Rydzewski 2015-10-16 13:34:28 -07:00
parent 1b77008480
commit 984c270a4d
1 changed files with 5 additions and 5 deletions

10
main.go
View File

@ -135,16 +135,16 @@ func command(s S3) *exec.Cmd {
if s.Delete {
args = append(args, "--delete")
}
// append include flag if specified
if len(s.Include) != 0 {
args = append(args, "--include")
args = append(args, s.Include)
}
// appends exclude flag if specified
if len(s.Exclude) != 0 {
args = append(args, "--exclude")
args = append(args, s.Exclude)
}
// append include flag if specified
if len(s.Include) != 0 {
args = append(args, "--include")
args = append(args, s.Include)
}
// appends content-type if specified
if len(s.ContentType) != 0 {
args = append(args, "--content-type")