diff --git a/cd.sh b/cd.sh index e1d5b05..819404e 100644 --- a/cd.sh +++ b/cd.sh @@ -25,7 +25,7 @@ CD_STEP=0 function cd_step { if [ "${1}" ] ; then - ((CD_STEP++)) + CD_STEP=$((CD_STEP+1)) echo " ↕ ${CD_STEP} ↔ ${1} " @@ -54,6 +54,9 @@ local text='' || exit } +function cd_main { + cd_set_dns + cd_step "configure package manager" echo -n "\ Acquire::Check-Valid-Until True; @@ -115,9 +118,6 @@ apt-get clean \ cd_step "bootstrap" "${DIRECTORY}/bootstrap.sh" - -function cd_main { - cd_set_dns } cd_main