From 90b86d2163903e8815d0c7ab751e15d185abdee8 Mon Sep 17 00:00:00 2001 From: "Illu M. Niggati" Date: Sun, 16 Oct 2016 14:25:49 -0400 Subject: [PATCH] Update check.sh Fix a small syntax issue. (-mtime is measured in days, not minutes) --- includes/check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/check.sh b/includes/check.sh index 9eb25f4..6619ff9 100644 --- a/includes/check.sh +++ b/includes/check.sh @@ -1,2 +1,2 @@ #! /bin/sh -find $(grep -oP '"CONFIG_FILES_PATH", "\K(.*)(?=")' config.php) -mtime +$(grep -oP '"CONFIG_MAX_RETENTION_TIME", "\K(.*)(?=")' config.php) -exec rm -f {} \; +find $(grep -oP '"CONFIG_FILES_PATH", "\K(.*)(?=")' config.php) -mmin +$(grep -oP '"CONFIG_MAX_RETENTION_TIME", "\K(.*)(?=")' config.php) -exec rm -f {} \;