Avoid using GNU-specific touch options

This makes cache-cleaner work correctly on MacOS.
This commit is contained in:
Daz DeBoer 2022-08-25 10:07:51 -06:00
parent c64fe31590
commit fb549a8417
No known key found for this signature in database
GPG Key ID: DD6B9F0B06683D5D

View File

@ -48,7 +48,7 @@ export class CacheCleaner {
private async ageAllFiles(fileName = '*'): Promise<void> { private async ageAllFiles(fileName = '*'): Promise<void> {
await exec.exec( await exec.exec(
'find', 'find',
[this.gradleUserHome, '-name', fileName, '-exec', 'touch', '-m', '-d', '1970-01-01', '{}', '+'], [this.gradleUserHome, '-name', fileName, '-exec', 'touch', '-m', '-t', '197001010000', '{}', '+'],
{} {}
) )
} }