diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-01-22 18:59:26 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-01-22 18:59:26 +0100 |
commit | 88ae44ab011d182405448efb20353b648aedeb48 (patch) | |
tree | 79edec203a2258824738260eb7e6dc1efff743df /scripts | |
parent | 67796884b3c65abbde6dc2a27bd4de0ee87073b4 (diff) | |
download | vyos-build-88ae44ab011d182405448efb20353b648aedeb48.tar.gz vyos-build-88ae44ab011d182405448efb20353b648aedeb48.zip |
list-build-dependencies: rename variable (do not use missleading current name)
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 \\" |