forked from gitbot/uguu
Update check.sh
Fix a small syntax issue. (-mtime is measured in days, not minutes)testing
parent
efba1b3780
commit
90b86d2163
|
@ -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 {} \;
|
||||
|
|
Loading…
Reference in New Issue