mirror of
https://github.com/moparisthebest/pacman
synced 2024-11-10 11:35:00 -05:00
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:
parent
96b34308fe
commit
6c8f817040
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user