From d7aae0ffb39178c89221004b996e3ce93796b3dd Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Wed, 26 May 2021 20:42:07 +0200 Subject: [PATCH] - cached_downloader did not correctly honor VERBOSE >= 2 --- src/slackpkgplus.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index 0d51b50..0c1312f 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -482,7 +482,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then rm -f $CACHEDIR/$CACHEFILE $CACHEDIR/$CACHEFILE.head 2>/dev/null fi echo -n " Downloading... " - [ $VERBOSE -gt 1 ]&&echo + [[ "$WGETOPTS $FLAG" =~ -q ]]||echo $CACHEDOWNLOADER $1 $SRCURL ERR=$? echo @@ -1976,7 +1976,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then FLAG="" if [ "$CMD" = "update" ];then [ $VERBOSE -lt 2 ]&&FLAG="-nv" - [ "$CACHEUPDATE" = "on" ]&&FLAG="-q" + [ $VERBOSE -lt 2 ]&&[ "$CACHEUPDATE" = "on" ]&&FLAG="-q" else [ $VERBOSE -lt 1 ]&&FLAG="-nv" fi