mirror of
https://github.com/thegeeklab/wp-s3-action.git
synced 2024-11-10 04:40:38 +00:00
fix issue #17, NoSuchKey
This commit is contained in:
parent
d22af6277e
commit
938f8cda19
@ -125,8 +125,9 @@ func (p *Plugin) createSyncJobs() {
|
|||||||
if p.Delete {
|
if p.Delete {
|
||||||
for _, r := range remote {
|
for _, r := range remote {
|
||||||
found := false
|
found := false
|
||||||
|
rPath := strings.TrimPrefix(r, p.Target+"/")
|
||||||
for _, l := range local {
|
for _, l := range local {
|
||||||
if l == r {
|
if l == rPath {
|
||||||
found = true
|
found = true
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user