Fixed off by one error in captain.sh bootstrapping

This commit is contained in:
Nathan Braswell
2016-05-12 23:59:13 -04:00
parent 88f922f67b
commit 91bc03ccb8

View File

@@ -53,8 +53,8 @@ else
if ! [ -s "${kraken}_bootstrap" ] if ! [ -s "${kraken}_bootstrap" ]
then then
# Check to see if we have a chached version # Check to see if we have a chached version
cached_index=1 cached_index=0
for ((i=2; i < ${#bootstrap_commits[@]}; i++)) for ((i=1; i < ${#bootstrap_commits[@]}; i++))
do do
echo "checking for cached kalypso part $i" echo "checking for cached kalypso part $i"
echo "commit hash: ${bootstrap_commits[$i]}" echo "commit hash: ${bootstrap_commits[$i]}"
@@ -69,7 +69,7 @@ else
git clone . bootstrap_kalypso git clone . bootstrap_kalypso
pushd bootstrap_kalypso pushd bootstrap_kalypso
if [[ $cached_index == "1" ]] if [[ $cached_index == "0" ]]
then then
echo "no ${kraken}_bootstrap, bootstrapping using Cephelpod and a chain of old Kalypsos" echo "no ${kraken}_bootstrap, bootstrapping using Cephelpod and a chain of old Kalypsos"
git checkout ${bootstrap_commits[0]} git checkout ${bootstrap_commits[0]}