From 91bc03ccb822ab316e63d3b3721dfcd50fde866f Mon Sep 17 00:00:00 2001 From: Nathan Braswell Date: Thu, 12 May 2016 23:59:13 -0400 Subject: [PATCH] Fixed off by one error in captain.sh bootstrapping --- captain.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/captain.sh b/captain.sh index 0b2210d..9521df7 100755 --- a/captain.sh +++ b/captain.sh @@ -53,8 +53,8 @@ else if ! [ -s "${kraken}_bootstrap" ] then # Check to see if we have a chached version - cached_index=1 - for ((i=2; i < ${#bootstrap_commits[@]}; i++)) + cached_index=0 + for ((i=1; i < ${#bootstrap_commits[@]}; i++)) do echo "checking for cached kalypso part $i" echo "commit hash: ${bootstrap_commits[$i]}" @@ -69,7 +69,7 @@ else git clone . bootstrap_kalypso pushd bootstrap_kalypso - if [[ $cached_index == "1" ]] + if [[ $cached_index == "0" ]] then echo "no ${kraken}_bootstrap, bootstrapping using Cephelpod and a chain of old Kalypsos" git checkout ${bootstrap_commits[0]}