small issue trying to clean cache directory

This commit is contained in:
Matteo Rossini 2022-01-17 18:51:19 +01:00
parent 4caf879812
commit 7c747e729a

View file

@ -2249,7 +2249,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then
CACHEDOWNLOADER=$DOWNLOADER CACHEDOWNLOADER=$DOWNLOADER
CACHEDIR=$WORKDIR/cache CACHEDIR=$WORKDIR/cache
mkdir -p $CACHEDIR mkdir -p $CACHEDIR
find $CACHEDIR -mtime +30 -exec rm -f {} \; find $CACHEDIR -mtime +30 -type f -exec rm -f {} \;
DOWNLOADER="cached_downloader" DOWNLOADER="cached_downloader"
fi fi