Update check.sh

Fix a small syntax issue. (-mtime is measured in days, not minutes)
This commit is contained in:
Illu M. Niggati 2016-10-16 14:25:49 -04:00 committed by GitHub
parent efba1b3780
commit 90b86d2163
1 changed files with 1 additions and 1 deletions

View File

@ -1,2 +1,2 @@
#! /bin/sh #! /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 {} \;