[batren-cvs] batren batren,1.9,1.10
Brought to you by:
cstroie
|
From: Costin S. <cs...@us...> - 2006-11-28 15:31:45
|
Update of /cvsroot/batren/batren In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv27775 Modified Files: batren Log Message: Steve has improved the PADDING adjustment. No loop is necessary. Index: batren =================================================================== RCS file: /cvsroot/batren/batren/batren,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- batren 21 Aug 2006 15:24:16 -0000 1.9 +++ batren 28 Nov 2006 15:31:40 -0000 1.10 @@ -81,10 +81,10 @@ # This is just an estimation, since the index can increase if more # files are found in the output directory LAST_INDEX=$(( TOTAL + FIRST_INDEX )) -while [ ${#PADDING} -lt ${#LAST_INDEX} ] -do - PADDING=${PADDING:0:1}${PADDING} -done +if [ ${#PADDING} -lt ${#LAST_INDEX} ] +then + PADDING=${LAST_INDEX//?/${PADDING:0:1}} +fi # Show current parameters if [ "${VERBOSE}" ] |