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:
parent
1b77008480
commit
984c270a4d
10
main.go
10
main.go
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user