mirror of
https://github.com/thegeeklab/wp-s3-action.git
synced 2024-11-22 01:00:40 +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