From e0f06d9e274ef01bdb7edd8d0d2b6eed365ecb70 Mon Sep 17 00:00:00 2001 From: Armand Bahi <armand.bahi@veremes.com> Date: Fri, 30 Nov 2018 14:25:31 +0100 Subject: [PATCH] Fix utils loop error --- utils/init_subtrees.sh | 2 +- utils/pull_subtrees.sh | 2 +- utils/push_subtrees.sh | 2 +- utils/reinit_ubtrees.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/init_subtrees.sh b/utils/init_subtrees.sh index 9f473102..66d74a6b 100755 --- a/utils/init_subtrees.sh +++ b/utils/init_subtrees.sh @@ -36,7 +36,7 @@ if [[ $depsCount > 0 ]]; then git subtree add --prefix src/closure "git@gitlab.veremes.net:Development/vitis_apps/sources/closure.git" master # Modules - for (( i=1; i <= $depsCount; i++ )); do + for (( i=1; i < $depsCount; i++ )); do if [ ${aDeps[$i, nature]} == "modules" ]; then echo "---- Init ${aDeps[$i, name]} : ${aDeps[$i, version]}----" diff --git a/utils/pull_subtrees.sh b/utils/pull_subtrees.sh index c91905cf..78eedacc 100755 --- a/utils/pull_subtrees.sh +++ b/utils/pull_subtrees.sh @@ -21,7 +21,7 @@ git subtree pull --prefix src/vitis -m "pull vitis $vitisVersion" "git@gitlab.v # Modules if [[ $depsCount > 0 ]]; then - for (( i=1; i <= $depsCount; i++ )); do + for (( i=1; i < $depsCount; i++ )); do if [ ${aDeps[$i, nature]} == "modules" ]; then echo "---- Pull ${aDeps[$i, name]} ----" diff --git a/utils/push_subtrees.sh b/utils/push_subtrees.sh index 18a9d3bd..290a0def 100755 --- a/utils/push_subtrees.sh +++ b/utils/push_subtrees.sh @@ -25,7 +25,7 @@ echo "---- Push vitis ----" # Modules if [[ $depsCount > 0 ]]; then - for (( i=1; i <= $depsCount; i++ )); do + for (( i=1; i < $depsCount; i++ )); do if [ ${aDeps[$i, nature]} == "modules" ]; then echo "---- Push ${aDeps[$i, name]} ----" diff --git a/utils/reinit_ubtrees.sh b/utils/reinit_ubtrees.sh index 7e1dfa53..5f86abdd 100755 --- a/utils/reinit_ubtrees.sh +++ b/utils/reinit_ubtrees.sh @@ -39,7 +39,7 @@ if [[ $depsCount > 0 ]]; then fi # Modules - for (( i=1; i <= $depsCount; i++ )); do + for (( i=1; i < $depsCount; i++ )); do if [ ${aDeps[$i, nature]} == "modules" ]; then read -p "Reinit ${aDeps[$i, name]}? (y/n)" -n 1 -r -- GitLab