diff --git a/includes/check.sh b/includes/check.sh index 6619ff9..d31d015 100755 --- a/includes/check.sh +++ b/includes/check.sh @@ -1,2 +1,2 @@ #! /bin/sh -find $(grep -oP '"CONFIG_FILES_PATH", "\K(.*)(?=")' config.php) -mmin +$(grep -oP '"CONFIG_MAX_RETENTION_TIME", "\K(.*)(?=")' config.php) -exec rm -f {} \; +find $(grep -oP '"CONFIG_FILES_PATH", "\K(.*)(?=")' config.php) -mindepth 1 -mmin +$(grep -oP '"CONFIG_MAX_RETENTION_TIME", "\K(.*)(?=")' config.php) -exec rm -rf {} \;