Merge pull request #30 from illumniggati/patch-1

Update check.sh
This commit is contained in:
Eric Johansson (neku) 2016-10-19 21:04:49 +02:00 committed by GitHub
commit 04022976c1
1 changed files with 1 additions and 1 deletions

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