From b81f03cdbcd06816a647bec2cf0775f3a93544b0 Mon Sep 17 00:00:00 2001 From: swg Date: Fri, 5 Feb 2016 20:27:14 +0100 Subject: [PATCH] More Fixes ... --- utils/mocha/prepare_all_scripts_multi.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/mocha/prepare_all_scripts_multi.sh b/utils/mocha/prepare_all_scripts_multi.sh index cc15e3865..c3d97741c 100755 --- a/utils/mocha/prepare_all_scripts_multi.sh +++ b/utils/mocha/prepare_all_scripts_multi.sh @@ -8,7 +8,6 @@ i=0 filenames=$(find $1 -type f \( -name '*.script' -o -name '*.scriptlib' \) -not -path "*/.deps/*") current=0 total=$(ls ${filenames[@]} | wc -l) -jobs=$(ps aux | grep "script_prep2.py" | wc -l) compile () { OFILENAME=${filename//.scriptlib/.java} @@ -30,7 +29,7 @@ for filename in $filenames; do i=$(( (i+1) %4 )) perc=$(bc -l <<< "scale=0; $current*100/$total") printf "\rConverting .scripts [${spinstr:$i:1}] $perc%%" - while [ $jobs -ge 50 ] + while [ `jobs | wc -l` -ge 50 ] do sleep 5 done