From 6c8f817040acb74bbf696e75a302280d5f07c98a Mon Sep 17 00:00:00 2001 From: Isaac Good Date: Tue, 17 Nov 2009 14:16:48 -0500 Subject: Replace an ugly while [ with a for (( loop Signed-off-by: Isaac Good Signed-off-by: Allan McRae Signed-off-by: Dan McGee --- scripts/makepkg.sh.in | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts') diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in index 3d776f06..1d9d8f13 100644 --- a/scripts/makepkg.sh.in +++ b/scripts/makepkg.sh.in @@ -514,11 +514,10 @@ generate_checksums() { local numsrc=${#source[@]} echo -n "${integ}sums=(" - local i=0; + local i local indent='' - while [ $i -lt $((${#integ}+6)) ]; do + for (( i = 0; i < ${#integ} + 6; i++ )); do indent="$indent " - i=$(($i+1)) done local netfile -- cgit v1.2.3-70-g09d2