From 6f3d5ed42597612ea42c2e5aad39cd0bbc58d60a Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Fri, 21 Jan 2022 19:39:03 +0100 Subject: [PATCH] Give a chance to disable the packages cache purge. --- src/slackpkgplus.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index 27d6828..104230d 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -2107,7 +2107,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then touch $WORKDIR/install.log fi - if [ -e $TEMP ];then + if [ -e $TEMP ]&&[ -z "$PURGECACHE" ];then # clean cache from packages without gpg signature find $TEMP ! -type d|sort|tac|awk '{if($1~/\.asc$/)f[$1]++;if($1~/\.t.z$/ && !f[$1".asc"])print $1}' |xargs -r rm -f fi