From fb549a841713e29e6fafa66b165ef7caede4b50e Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Thu, 25 Aug 2022 10:07:51 -0600 Subject: [PATCH] Avoid using GNU-specific touch options This makes cache-cleaner work correctly on MacOS. --- src/cache-cleaner.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache-cleaner.ts b/src/cache-cleaner.ts index 7c8ef78..4fef8ac 100644 --- a/src/cache-cleaner.ts +++ b/src/cache-cleaner.ts @@ -48,7 +48,7 @@ export class CacheCleaner { private async ageAllFiles(fileName = '*'): Promise { await exec.exec( 'find', - [this.gradleUserHome, '-name', fileName, '-exec', 'touch', '-m', '-d', '1970-01-01', '{}', '+'], + [this.gradleUserHome, '-name', fileName, '-exec', 'touch', '-m', '-t', '197001010000', '{}', '+'], {} ) }