Don't fail if the file-to-delete no longer exists

Fixes #308
This commit is contained in:
Daz DeBoer 2022-06-06 15:30:51 -06:00
parent 7a15005377
commit 93c31ca3b5
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
2 changed files with 7 additions and 4 deletions

View file

@ -312,9 +312,9 @@ export class GradleHomeEntryExtractor extends AbstractEntryExtractor {
followSymbolicLinks: false
})
for (const p of await globber.glob()) {
cacheDebug(`Deleting wrapper zip: ${p}`)
tryDelete(p)
for (const wrapperZip of await globber.glob()) {
cacheDebug(`Deleting wrapper zip: ${wrapperZip}`)
await tryDelete(wrapperZip)
}
}