Skip to content

Commit

Permalink
Fix "off by one" error in loop counting of secomnd loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Olf0 authored Apr 2, 2023
1 parent 5e1a415 commit 33051f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/buildrpms
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ else
fi
k=0
kMax="$(printf '%s' "$List" | wc -l)"
while [ $k -lt $kMax ]
while [ $k -le $kMax ]
do
k=$((k+1))
i="$(printf '%s' "$List" | sed -n "${k}P")" # Pick k-th entry
Expand Down

0 comments on commit 33051f5

Please sign in to comment.