summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorIsaac Good <pacman@isaac.otherinbox.com>2009-11-17 20:16:48 +0100
committerDan McGee <dan@archlinux.org>2009-12-01 04:06:17 +0100
commit6c8f817040acb74bbf696e75a302280d5f07c98a (patch)
tree42ceae35ec24d5b5b9da41b8532febfe76545878 /scripts
parent96b34308fe6aed5ef002c3769639ad33dac923c7 (diff)
downloadpacman-6c8f817040acb74bbf696e75a302280d5f07c98a.tar.gz
pacman-6c8f817040acb74bbf696e75a302280d5f07c98a.tar.xz
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