From: Michael R Sweet Date: Sun, 22 Nov 2020 13:37:49 +0000 (-0500) Subject: Don't show waiting for jobs unless we are waiting for jobs... X-Git-Tag: v2.3.3op1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09c18efc06c374afad7f1548ffe1355801d64274;p=thirdparty%2Fcups.git Don't show waiting for jobs unless we are waiting for jobs... --- diff --git a/test/waitjobs.sh b/test/waitjobs.sh index 79c1ab0570..b9ff2655ca 100755 --- a/test/waitjobs.sh +++ b/test/waitjobs.sh @@ -30,6 +30,19 @@ else ac_c='\c' fi +# +# Check whether we have any jobs to wait for... +# + +jobs=`$runcups ../systemv/lpstat 2>/dev/null | wc -l | tr -d ' '` +if test $jobs = 0; then + exit 0 +fi + +# +# We do, let the tester know what is going on... +# + echo $ac_n "Waiting for jobs to complete...$ac_c" oldjobs=0