summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorIsaac Good <pacman@isaac.otherinbox.com>2009-11-17 14:16:48 -0500
committerDan McGee <dan@archlinux.org>2009-11-30 21:06:17 -0600
commit6c8f817040acb74bbf696e75a302280d5f07c98a (patch)
tree42ceae35ec24d5b5b9da41b8532febfe76545878 /scripts
parent96b34308fe6aed5ef002c3769639ad33dac923c7 (diff)
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>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in5
1 files changed, 2 insertions, 3 deletions
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