summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-01-22 18:59:26 +0100
committerChristian Poessinger <christian@poessinger.com>2020-01-22 18:59:26 +0100
commit88ae44ab011d182405448efb20353b648aedeb48 (patch)
tree79edec203a2258824738260eb7e6dc1efff743df /scripts
parent67796884b3c65abbde6dc2a27bd4de0ee87073b4 (diff)
downloadvyos-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-xscripts/list-build-dependencies8
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 \\"