From fe3c05db4cbc4fcdbc4058e6e788da9a0c104294 Mon Sep 17 00:00:00 2001 From: Matteo Rossini Date: Mon, 8 Mar 2021 21:29:02 +0100 Subject: [PATCH] shorter pause after some warning suppress some check-updates warning when run as non-root user --- src/slackpkgplus.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/slackpkgplus.sh b/src/slackpkgplus.sh index 91e26ff..d834554 100755 --- a/src/slackpkgplus.sh +++ b/src/slackpkgplus.sh @@ -566,7 +566,6 @@ if [ "$SLACKPKGPLUS" = "on" ];then echo " 'slackpkg file-search' will not work on that" echo " repository" echo - sleep 3 fi fi fi @@ -811,7 +810,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then echo " in /etc/slackpkg/slackpkg.conf or use slackpkg with" echo " '-checkgpg=off' : 'slackpkg -checkgpg=off install packge'" echo - sleep 5 + sleep 3 fi rm $2-tmp-$PREPO echo @@ -1855,7 +1854,6 @@ if [ "$SLACKPKGPLUS" = "on" ];then echo echo "NOTICE: pkglist is older than 24h; you are encouraged to re-run 'slackpkg update'" echo - sleep 1 fi fi if [ "$CMD" != "update" -a "$CMD" != "check-updates" ];then @@ -1863,7 +1861,6 @@ if [ "$SLACKPKGPLUS" = "on" ];then echo echo "NOTICE: remember to re-run 'slackpkg update' after modifying slackpkgplus.conf" echo - sleep 5 fi fi @@ -2291,7 +2288,7 @@ if [ "$SLACKPKGPLUS" = "on" ];then else echo "Slackpkg: No updated packages since last check." # Suppress the "pkglist is older than 24h" notice - touch $WORKDIR/pkglist + touch $WORKDIR/pkglist 2>/dev/null fi cleanup