diff --git a/Makefile b/Makefile index 5353b0b..4597b2a 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ # renovate: datasource=github-releases depName=mvdan/gofumpt GOFUMPT_PACKAGE_VERSION := v0.6.0 # renovate: datasource=github-releases depName=golangci/golangci-lint -GOLANGCI_LINT_PACKAGE_VERSION := v1.55.2 +GOLANGCI_LINT_PACKAGE_VERSION := v1.56.1 EXECUTABLE := wp-s3-action diff --git a/plugin/aws.go b/plugin/aws.go index fe3f49b..2681621 100644 --- a/plugin/aws.go +++ b/plugin/aws.go @@ -410,7 +410,6 @@ func (a *AWS) List(path string) ([]string, error) { Prefix: aws.String(path), Marker: aws.String(remote[len(remote)-1]), }) - if err != nil { return remote, err } diff --git a/plugin/impl.go b/plugin/impl.go index 9a4d4d4..dc42f47 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -83,7 +83,9 @@ func (p *Plugin) createSyncJobs() error { localPath = strings.TrimPrefix(path, p.Settings.Source) localPath = strings.TrimPrefix(localPath, "/") } + local = append(local, localPath) + p.Settings.Jobs = append(p.Settings.Jobs, Job{ local: filepath.Join(p.Settings.Source, localPath), remote: filepath.Join(p.Settings.Target, localPath),