From 984c270a4deb9f54ccbb3f322777405e89d702d0 Mon Sep 17 00:00:00 2001 From: Brad Rydzewski Date: Fri, 16 Oct 2015 13:34:28 -0700 Subject: [PATCH] change ordering of include exclude --- main.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/main.go b/main.go index 1429e19..9e74bad 100644 --- a/main.go +++ b/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")