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

View File

@ -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 {} \;