Replace an ugly while [ with a for (( loop

Signed-off-by: Isaac Good <pacman@isaac.otherinbox.com>
Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Isaac Good 2009-11-17 14:16:48 -05:00 committed by Dan McGee
parent 96b34308fe
commit 6c8f817040
1 changed files with 2 additions and 3 deletions

View File

@ -514,11 +514,10 @@ generate_checksums() {
local numsrc=${#source[@]} local numsrc=${#source[@]}
echo -n "${integ}sums=(" echo -n "${integ}sums=("
local i=0; local i
local indent='' local indent=''
while [ $i -lt $((${#integ}+6)) ]; do for (( i = 0; i < ${#integ} + 6; i++ )); do
indent="$indent " indent="$indent "
i=$(($i+1))
done done
local netfile local netfile