mirror of
https://github.com/thegeeklab/drone-s3-sync.git
synced 2024-11-28 19:40:34 +00:00
commit
7f1c4f4b96
@ -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