0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-21 14:50:39 +00:00

change ordering of include exclude

This commit is contained in:
Brad Rydzewski 2015-10-16 13:34:28 -07:00
parent 1b77008480
commit 984c270a4d

10
main.go
View File

@ -135,16 +135,16 @@ func command(s S3) *exec.Cmd {
if s.Delete { if s.Delete {
args = append(args, "--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 // appends exclude flag if specified
if len(s.Exclude) != 0 { if len(s.Exclude) != 0 {
args = append(args, "--exclude") args = append(args, "--exclude")
args = append(args, s.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 // appends content-type if specified
if len(s.ContentType) != 0 { if len(s.ContentType) != 0 {
args = append(args, "--content-type") args = append(args, "--content-type")