diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/list-build-dependencies | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/list-build-dependencies b/scripts/list-build-dependencies index a61c3ad3..dcf94757 100755 --- a/scripts/list-build-dependencies +++ b/scripts/list-build-dependencies @@ -96,17 +96,17 @@ do --output $CTRLFILE --retry 100 --retry-delay 1 --silent declare -a array - declare -i length current + declare -i length cnt array=($(get_build_depends $CTRLFILE)) length=${#array[@]} - current=0 + cnt=0 echo "# Packages needed to build '$pkg' from https://github.com/vyos/$pkg" echo "apt-get install -y \\" for name in "${array[@]}"; do - current=$((current + 1)) - if [[ "$current" -eq "$length" ]]; then + cnt=$((cnt + 1)) + if [[ "$cnt" -eq "$length" ]]; then echo " $name" else echo " $name \\" |