mirror of
https://github.com/thegeeklab/drone-s3-sync.git
synced 2024-11-25 10:20: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