From a2131407eb794673e66a2289ebda25007b4f561a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 20 May 2014 14:34:53 +0100 Subject: [PATCH] Don't error if a temp file vanishes before we can remove it --- cookbooks/tile/templates/default/export.cron.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cookbooks/tile/templates/default/export.cron.erb b/cookbooks/tile/templates/default/export.cron.erb index da828546e..d2f3be178 100644 --- a/cookbooks/tile/templates/default/export.cron.erb +++ b/cookbooks/tile/templates/default/export.cron.erb @@ -1,4 +1,6 @@ #!/bin/sh +# DO NOT EDIT - This file is being maintained by Chef + # Removes stale tmp files from the export tab -exec find /tmp -name 'export??????' -mmin +60 -delete +exec find /tmp -name 'export??????' -mmin +60 -print0 | xargs -0r rm -f -- 2.43.2