From 76c09806c6947b0ed85bf114b4191e22943cf5ce Mon Sep 17 00:00:00 2001 From: Dmitry Ozerov Date: Wed, 3 Jun 2020 13:11:42 +0200 Subject: [PATCH] remove first files, then directories in cleanup --- scripts/delete_old_files_in_buffer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/delete_old_files_in_buffer.sh b/scripts/delete_old_files_in_buffer.sh index 1d0db5a..ddcfed1 100755 --- a/scripts/delete_old_files_in_buffer.sh +++ b/scripts/delete_old_files_in_buffer.sh @@ -26,5 +26,5 @@ then exit fi -#find /gpfs/photonics/swissfel/buffer/JF* -type f -mmin +$((${hours}*60)) -delete +find /gpfs/photonics/swissfel/buffer/JF* -type f -mmin +$((${hours}*60)) -delete find /gpfs/photonics/swissfel/buffer/JF*/M* -type d -mmin +$((${hours}*60)) -delete